?? iemployeedao.java
字號:
package com.REP.DAO.iface;
import java.io.Serializable;
import com.REP.bean.Employee;
public interface IEmployeeDAO {
public com.REP.bean.Employee get(java.lang.Integer key);
public com.REP.bean.Employee load(java.lang.Integer key);
public java.util.List<com.REP.bean.Employee> findAll ();
/**
* Persist the given transient instance, first assigning a generated identifier. (Or using the current value
* of the identifier property if the assigned generator is used.)
* @param employee a transient instance of a persistent class
* @return the class identifier
*/
public java.lang.Integer save(com.REP.bean.Employee employee);
/**
* Either save() or update() the given instance, depending upon the value of its identifier property. By default
* the instance is always saved. This behaviour may be adjusted by specifying an unsaved-value attribute of the
* identifier property mapping.
* @param employee a transient instance containing new or updated state
*/
public void saveOrUpdate(com.REP.bean.Employee employee);
/**
* Update the persistent state associated with the given identifier. An exception is thrown if there is a persistent
* instance with the same identifier in the current session.
* @param employee a transient instance containing updated state
*/
public void update(com.REP.bean.Employee employee);
/**
* Remove a persistent instance from the datastore. The argument may be an instance associated with the receiving
* Session or a transient instance with an identifier associated with existing persistent state.
* @param id the instance ID to be removed
*/
public void delete(java.lang.Integer id);
/**
* Remove a persistent instance from the datastore. The argument may be an instance associated with the receiving
* Session or a transient instance with an identifier associated with existing persistent state.
* @param employee the instance to be removed
*/
public void delete(com.REP.bean.Employee employee);
public Employee findEmployee(String employeeName,String idCard);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -