📄 employeeservice.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 + -