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

📄 employeeservice.java

📁 JPA最好的
💻 JAVA
字号:
package com.ibm.dw.spring2;

import java.util.List;

public interface EmployeeService {

	// create a new employee
	public Employee save(Employee emp);
	
	// removing an employee
	public void delete(Employee emp);


    // update the information on an employee
	public Employee update(Employee emp);

	// find all the employees in the company 
    public List<Employee> findAll();
    
//  find an employee by the employee number
	public List<Employee> findByEmployeeNumber(String empno);


    // find an employee by his name
	public List<Employee> findByEmployeeLastName(String lastName);

	// find an employees living on a street
	public List<Employee> findByAddressStreetName(String streetName);
	
	// find an employee by the internal unique id
	public Employee findById(long id);
  
	// find employee over a certain salary
	public List<Employee> findEmployeeWithSalaryOver(double sal);
	
	// find employee with a certain commission income
	public List<Employee> findEmployeeWithCommissionOver(double comm);
		
}

⌨️ 快捷键说明

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