|
||||||||||
| 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
org.itracker.persistence.dao.BaseHibernateDAOImpl<T>
public abstract class BaseHibernateDAOImpl<T extends Entity>
Contains common behaviour to all hibernate factories
| Field Summary |
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
BaseHibernateDAOImpl()
|
|
| Method Summary | |
|---|---|
void |
delete(T entity)
Deletes entity from persistence store. |
void |
detach(T entity)
Remove this instance from the session cache. |
T |
merge(T entity)
Copy the state of the given object onto the persistent object with the same identifier. |
void |
refresh(T entity)
Reloads an entity from persistance. |
void |
save(T entity)
insert a new entity. |
void |
saveOrUpdate(T entity)
inserts a new detached entity or updates if it already exists. |
| 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 BaseHibernateDAOImpl()
| Method Detail |
|---|
public void save(T entity)
save in interface BaseDAO<T extends Entity>entity - - detached entity objectSession.save(Object)public void saveOrUpdate(T entity)
saveOrUpdate in interface BaseDAO<T extends Entity>entity - - entity object to be inserted or updatedSession.saveOrUpdate(Object)public void delete(T entity)
BaseDAO
delete in interface BaseDAO<T extends Entity>Session.delete(Object)public void detach(T entity)
BaseDAO
detach in interface BaseDAO<T extends Entity>Session.evict(Object)public void refresh(T entity)
BaseDAO
refresh in interface BaseDAO<T extends Entity>Session.refresh(Object)public T merge(T entity)
BaseDAO
merge in interface BaseDAO<T extends Entity>Session.merge(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||