|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.riotfamily.pages.riot.dao.PageRiotDao
public class PageRiotDao
| Constructor Summary | |
|---|---|
PageRiotDao()
|
|
| Method Summary | |
|---|---|
void |
addChild(Object entity,
Object parent)
Adds the entity to a new parent. |
void |
afterPropertiesSet()
|
void |
delete(Object entity,
Object parent)
Deletes the given entity. |
Class<?> |
getEntityClass()
Returns the class that is accessed by the DAO. |
int |
getListSize(Object parent,
ListParams params)
Returns the total number of entities. |
String |
getObjectId(Object entity)
Returns the id of the given entity. |
Object |
getParent(Object entity)
|
boolean |
hasChildren(Object parent,
Object root,
ListParams params)
|
Collection<Page> |
list(Object parent,
ListParams params)
Returns a list of entities. |
Object |
load(String id)
Returns the entity with the given id. |
Object |
merge(Object entity)
Re-attaches the given entity. |
void |
removeChild(Object entity,
Object parent)
Removes the entity from the given parent. |
void |
save(Object entity,
Object parent)
Saves the given entity. |
void |
setPageDao(PageDao pageDao)
|
void |
swapEntity(Object entity,
Object parent,
ListParams params,
int swapWith)
|
void |
update(Object entity)
Updates the given entity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PageRiotDao()
| Method Detail |
|---|
public void setPageDao(PageDao pageDao)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic Object getParent(Object entity)
getParent in interface ParentChildDao
public void delete(Object entity,
Object parent)
throws DataAccessException
RiotDao
delete in interface RiotDaoDataAccessExceptionpublic Class<?> getEntityClass()
RiotDao
getEntityClass in interface RiotDao
public int getListSize(Object parent,
ListParams params)
throws DataAccessException
RiotDao
getListSize in interface RiotDaoDataAccessExceptionpublic String getObjectId(Object entity)
RiotDaoload()
method.
getObjectId in interface RiotDao
public Collection<Page> list(Object parent,
ListParams params)
throws DataAccessException
RiotDao
list in interface RiotDaoDataAccessException
public boolean hasChildren(Object parent,
Object root,
ListParams params)
hasChildren in interface TreeHintDao
public Object load(String id)
throws DataAccessException
RiotDao
load in interface RiotDaoDataAccessException
public void save(Object entity,
Object parent)
throws DataAccessException
RiotDao
save in interface RiotDaoDataAccessException
public Object merge(Object entity)
throws DataAccessException
RiotDao
merge in interface RiotDaoDataAccessException
public void update(Object entity)
throws DataAccessException
RiotDao
update in interface RiotDaoDataAccessException
public void swapEntity(Object entity,
Object parent,
ListParams params,
int swapWith)
swapEntity in interface SwappableItemDao
public void addChild(Object entity,
Object parent)
CutAndPasteEnabledDao
addChild in interface CutAndPasteEnabledDao
public void removeChild(Object entity,
Object parent)
CutAndPasteEnabledDao
removeChild in interface CutAndPasteEnabledDao
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||