package cn.edu.info.dao;
import java.io.Serializable;
import java.util.List;
/**
* Generic DAO (Data Access Object) with common methods to CRUD POJOs.
* @author
*/
public interface GenericDao{
/**
* Generic method used to get all objects of a particular type. This
* is the same as lookup up all rows in a table.
* @return List of populated objects
*/
List getAll(Object o);
/**
* Generic method to get an object based on class and identifier. An
* ObjectRetrievalFailureException Runtime Exception is thrown if
* nothing is found.
*
* @param id the identifier (primary key) of the object to get
* @return a populated object
* @see org.springframework.orm.ObjectRetrievalFailureException
*/
Object get(Object o,Integer id);
/**
* Checks for existence of an object of type T using the id arg.
* @param id the id of the entity
* @return - true if it exists, false if it doesn't
*/
boolean exists(Object o,Integer id);
/**
* Generic method to save an object - handles both update and insert.
* @param object the object to save
* @return the persisted object
*/
Object save(Object object);
/**
* Generic method to delete an object based on class and id
* @param id the identifier (primary key) of the object to remove
*/
void remove(Object o,Integer id);
/**
* Generic method to get an object based on class and a property. An
* ObjectRetrievalFailureException Runtime Exception is thrown if
* nothing is found.
*
* @param propertyName the identifier (primary key) of the object to get
* @return a populated object
* @see org.springframework.orm.ObjectRetrievalFailureException
*/
List getAllBypropertyName(Object o,String propertyName,Object value);
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
一个struts2+hibernate+spring的整合框架 (172个子文件)
CenterAction.class 4KB
OrgAction.class 3KB
DmResult.class 3KB
DmNews.class 3KB
DmPages.class 3KB
DmGoodwork.class 3KB
GenericDaoHibernate.class 3KB
DmProject.class 3KB
GetTecServiceInfoAction.class 3KB
DmNotice.class 3KB
DmContact.class 2KB
DmProduction.class 2KB
DmResearch.class 2KB
NoticeAction.class 2KB
LabAction.class 2KB
DmHintroduction.class 2KB
DmHistory.class 2KB
DmService.class 2KB
DmEvent.class 2KB
DmDev.class 2KB
DmLab.class 2KB
DmBook.class 2KB
DmCourse.class 2KB
GenericManagerImpl.class 2KB
HistoryAction.class 2KB
DmPhasedetial.class 2KB
DmOrg.class 2KB
IndexAction.class 2KB
DmManager.class 2KB
DmPiclink.class 2KB
DmPhase.class 1KB
DmBookDaoHibernate.class 1KB
DmWordlink.class 1KB
DmMenu.class 1KB
MyTreeAction.class 1KB
DmBookManagerImpl.class 1KB
StartupListener.class 1KB
PersonDaoHibernate.class 1KB
MyTreeDaoHibernate.class 1KB
PersonManagerImpl.class 1KB
MyTreeManagerImpl.class 1KB
MyTree.class 982B
Person.class 982B
ExportDB.class 878B
GenericManager.class 540B
GenericDao.class 529B
DmBookDaoHibernateTest.class 502B
DmContactDao.class 419B
DmBookManager.class 406B
DmBookDao.class 396B
PersonManager.class 243B
MyTreeManager.class 243B
MyTreeDao.class 232B
PersonDao.class 232B
DmHintorductionDao.class 133B
DmPhasedetialDao.class 129B
DmProductionDao.class 127B
DmWordlinkDao.class 123B
DmResearchDao.class 123B
DmGoodworkDao.class 123B
DmHistoryDao.class 121B
DmServiceDao.class 121B
DmPiclinkDao.class 121B
DmProjectDao.class 121B
DmManagerDao.class 121B
DmCourseDao.class 119B
DmNoticeDao.class 119B
DmResultDao.class 119B
DmPagesDao.class 117B
DmPhaseDao.class 117B
DmEventDao.class 117B
DmMenuDao.class 115B
DmNewsDao.class 115B
DmDevDao.class 113B
DmLabDao.class 113B
DmOrgDao.class 113B
.classpath 3KB
struts2-core-2.0.11.2.jar 2.22MB
hibernate3.jar 1.87MB
xerces-2.6.2.jar 972KB
freemarker-2.3.8.jar 784KB
mysql-connector-java-5.1.5-bin.jar 661KB
mysql-connector-java-5.0.0-beta-bin.jar 464KB
xwork-2.0.5.jar 447KB
antlr-2.7.6rc1.jar 427KB
spring-beans.jar 381KB
log4j-1.2.14.jar 359KB
msutil.jar 358KB
log4j-1.2.11.jar 343KB
dom4j-1.6.1.jar 303KB
msbase.jar 296KB
jaxen-1.1-beta-7.jar 223KB
asm-all-3.0.jar 185KB
spring-core.jar 179KB
commons-collections-2.1.1.jar 170KB
ognl-2.6.11.jar 164KB
spring-context.jar 158KB
xml-apis.jar 121KB
jaas.jar 101KB
commons-pool-1.4.jar 85KB
共 172 条
- 1
- 2
资源评论
sosososo
- 粉丝: 1
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功