?? dao.java
字號:
package com.set.appframe.persistence;
import java.util.List;
/**
* Data Access Object (DAO) interface. This is an interface used to tag our DAO
* classes and to provide common methods to all DAOs.
*/
public interface DAO {
/**
* Generic method to get an object - id must be populated
*
* @param o
* @return a populated object (or null if id doesn't exist)
* @throws DAOException
*/
public Object getObject(String id, Class objClass) throws DAOException;
/**
* Generic method to save an object - handles both update and insert.
*
* @param o
* the object to save
*/
public Object saveObject(Object o);
/**
* Generic method to delete an object
*
* @param o
* the object to delete
* @throws DAOException
*/
public void removeObject(String id, Class objClass) throws DAOException;
/**
* @author lc get Object List
* @param listHQL
* @return
* @throws DAOException
*/
public List getObjectList(String listHQL) throws DAOException;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -