|
||||||||||
| 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.directdemocracyportal.democracy.service.dao.hibernate.GenericHibernateDAO<T,ID>
T - the generic typeID - the generic type@Transactional(propagation=MANDATORY) public abstract class GenericHibernateDAO<T extends BaseEntity,ID extends java.io.Serializable> extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements GenericDAO<T,ID>
The Class GenericHibernateDAO.
| Modifier and Type | Field and Description |
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor and Description |
|---|
GenericHibernateDAO(java.lang.Class<T> persistentClass)
Instantiates a new generic hibernate dao. |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(T entity)
Delete. |
java.util.List<T> |
getAll()
Gets the all. |
T |
load(ID id)
Load. |
T |
save(T entity)
Save. |
| 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 GenericHibernateDAO(java.lang.Class<T> persistentClass)
persistentClass - the persistent class| Method Detail |
|---|
@Transactional(readOnly=true)
public T load(ID id)
throws org.springframework.dao.DataAccessException
GenericDAO
load in interface GenericDAO<T extends BaseEntity,ID extends java.io.Serializable>id - the idorg.springframework.dao.DataAccessException - the data access exception
public T save(T entity)
throws org.springframework.dao.DataAccessException
GenericDAO
save in interface GenericDAO<T extends BaseEntity,ID extends java.io.Serializable>entity - the entityorg.springframework.dao.DataAccessException - the data access exception
public void delete(T entity)
throws org.springframework.dao.DataAccessException
GenericDAO
delete in interface GenericDAO<T extends BaseEntity,ID extends java.io.Serializable>entity - the entityorg.springframework.dao.DataAccessException - the data access exception
@Transactional(readOnly=true)
public java.util.List<T> getAll()
throws org.springframework.dao.DataAccessException
GenericDAO
getAll in interface GenericDAO<T extends BaseEntity,ID extends java.io.Serializable>org.springframework.dao.DataAccessException - the data access exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||