|
|||||||||
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.riotfamily.riot.hibernate.dao.AbstractHibernateRiotDao
public abstract class AbstractHibernateRiotDao
Field Summary |
---|
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
AbstractHibernateRiotDao(org.hibernate.SessionFactory sessionFactory)
|
Method Summary | |
---|---|
void |
delete(Object entity,
Object parent)
Deletes the given entity. |
int |
getListSize(Object parent,
ListParams params)
Returns the total number of entities. |
String |
getObjectId(Object entity)
Returns the id of the given entity. |
Collection<?> |
list(Object parent,
ListParams params)
Returns a list of entities. |
protected List<?> |
listInternal(Object parent,
ListParams params)
|
Object |
load(String id)
Returns the entity with the given id. |
Object |
merge(Object entity)
Re-attaches the given entity. |
void |
save(Object entity,
Object parent)
Saves the given entity. |
void |
update(Object entity)
Updates the given entity. |
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 |
Methods inherited from interface org.riotfamily.riot.dao.RiotDao |
---|
getEntityClass |
Constructor Detail |
---|
public AbstractHibernateRiotDao(org.hibernate.SessionFactory sessionFactory)
Method Detail |
---|
public String getObjectId(Object entity)
RiotDao
load()
method.
getObjectId
in interface RiotDao
public Object load(String id) throws DataAccessException
RiotDao
load
in interface RiotDao
DataAccessException
public int getListSize(Object parent, ListParams params) throws DataAccessException
RiotDao
getListSize
in interface RiotDao
DataAccessException
public final Collection<?> list(Object parent, ListParams params)
RiotDao
list
in interface RiotDao
protected List<?> listInternal(Object parent, ListParams params) throws DataAccessException
DataAccessException
public void save(Object entity, Object parent) throws DataAccessException
RiotDao
save
in interface RiotDao
DataAccessException
public Object merge(Object entity) throws DataAccessException
RiotDao
merge
in interface RiotDao
DataAccessException
public void update(Object entity) throws DataAccessException
RiotDao
update
in interface RiotDao
DataAccessException
public void delete(Object entity, Object parent) throws DataAccessException
RiotDao
delete
in interface RiotDao
DataAccessException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |