employeeservice.java

来自「固定资产管理系统包括一个基本的部分」· Java 代码 · 共 47 行

JAVA
47
字号
package com.shenlong.assetmanage.service;

import java.sql.SQLException;
import java.util.List;

import com.shenlong.assetmanage.dao.EmployeeDao;
import com.shenlong.assetmanage.daoImplSQLserver.EmployeeDaoImpl;
import com.shenlong.assetmanage.domain.Employee;

public class EmployeeService {
    
	private EmployeeDao employeedao=new EmployeeDaoImpl();
	public int saveNewEmp (Employee emp) throws SQLException{
		return employeedao.saveNewEmp(emp);
	}
	
	
	public int getEmployeeCountByName(String empName) throws SQLException{
		return employeedao.getEmployeeCountByName(empName);
	}
	
	
	public List<Employee> queryEmployeeByName(String empName,int currPage, int pageSize) throws SQLException{
		return employeedao.queryEmployeeByName(empName, currPage, pageSize);
	}
	
	
	public int modifyEmployee(Employee employee) throws SQLException{
		return employeedao.modifyEmployee(employee);
	}
	
	
	public int deleteEmployeeById(int id) throws SQLException{
		return employeedao.deleteEmployeeById(id);
	}
	
	
	
	public List<Employee> getAllEmployees() throws SQLException{
		return employeedao.getAllEmployees();
	}
	public Employee queryEmployeeById(int id) throws SQLException{
		return employeedao.queryEmployeeById(id);
	}
	
}

⌨️ 快捷键说明

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