|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
net.sf.sail.webapp.dao.impl.AbstractHibernateDao<T>
public abstract class AbstractHibernateDao<T>
| Field Summary |
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
AbstractHibernateDao()
|
|
| Method Summary | |
|---|---|
void |
delete(T object)
Deletes the object from a persistent data store. |
T |
getById(Serializable id)
Retrieves a single object from persistent data store based on the primary key. |
protected abstract Class<? extends T> |
getDataObjectClass()
Gets the class of the persistent entity. |
protected abstract String |
getFindAllQuery()
Gets a string that will perform a query to retrieve all available objects from the persistent data store. |
List<T> |
getList()
Gets a list of objects from a persistent data store. |
void |
save(T object)
Saves the object to a persistent data store. |
| Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
|---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractHibernateDao()
| Method Detail |
|---|
public void delete(T object)
SimpleDao
delete in interface SimpleDao<T>SimpleDao.delete(java.lang.Object)public void save(T object)
SimpleDao
save in interface SimpleDao<T>SimpleDao.save(java.lang.Object)public List<T> getList()
SimpleDao
getList in interface SimpleDao<T>List of objectsSimpleDao.getList()protected abstract String getFindAllQuery()
String query
public T getById(Serializable id)
throws ObjectNotFoundException
SimpleDao
getById in interface SimpleDao<T>id - The id of the object you are retrieving.
ObjectNotFoundExceptionnet.sf.sail.webapp.dao.SimpleDao#getById(java.lang.Integer)protected abstract Class<? extends T> getDataObjectClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||