⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 courseleaderservice.java

📁 数据库系统教材中附录的课程设计accomodation宿舍管理系统源码
💻 JAVA
字号:
package cn.kmp.accommodation.service;

import com.littleQworks.commons.dao.ibatis.spring.CommonDaoGenericImpl;
import cn.kmp.accommodation.domain.*;
public class CourseLeaderService {
	private CommonDaoGenericImpl commonDao;

	public CommonDaoGenericImpl getCommonDao() {
		return commonDao;
	}

	public void setCommonDao(CommonDaoGenericImpl commonDao) {
		this.commonDao = commonDao;
	}
	//根据课程负责人号获得课程负责人的信息
	public CourseLeader getCourseLeaderByCourseLeaderNum(int courseLeaderNum){
		return commonDao.getByParamter(courseLeaderNum, "getCourseLeaderByCourseLeaderNum");
	}
	//获得相应课程号的课程负责人
	public CourseLeader getCourseLeaderByCourseNum(int courseNum){
		return commonDao.getByParamter(courseNum, "getCourseLeaderByCourseNum");
	}
	//更新课程负责人
	public boolean updateCourseLeaderByCourseLeaderNum(CourseLeader courseLeader){
		return commonDao.updateByParameter(courseLeader, "updateCourseLeaderByCouseLeaderNum");
	}
	//添加课程负责人
	public boolean insertCourseLeader(CourseLeader courseLeader){
		return commonDao.insertByParameter(courseLeader, "insertCourseLeader");
	}
	//删除课程负责人
	public boolean deleteCourseLeaderByCourseLeaderNum(int courseLeaderNum){
		return commonDao.deleteByParameter(courseLeaderNum, "deleteCourseLeaderByCourseLeaderNum");
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -