|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.riotfamily.riot.dao.support.RiotDaoAdapter
public class RiotDaoAdapter
| Constructor Summary | |
|---|---|
RiotDaoAdapter()
|
|
| Method Summary | |
|---|---|
void |
delete(Object entity,
Object parent)
Always throws an InvalidDataAccessApiUsageException. |
Class<?> |
getEntityClass()
Returns the class that is accessed by the DAO. |
int |
getListSize(Object parent,
ListParams params)
Always returns -1. |
String |
getObjectId(Object entity)
Always returns null. |
Collection<?> |
list(Object parent,
ListParams params)
Always returns Collections.EMPTY_LIST. |
Object |
load(String id)
Always throws an InvalidDataAccessApiUsageException. |
Object |
merge(Object entity)
Returns the given entity. |
void |
save(Object entity,
Object parent)
Always throws an InvalidDataAccessApiUsageException. |
void |
update(Object entity)
Does nothing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RiotDaoAdapter()
| Method Detail |
|---|
public Class<?> getEntityClass()
RiotDao
getEntityClass in interface RiotDao
public int getListSize(Object parent,
ListParams params)
throws DataAccessException
-1.
getListSize in interface RiotDaoDataAccessExceptionpublic String getObjectId(Object entity)
null.
getObjectId in interface RiotDao
public Collection<?> list(Object parent,
ListParams params)
throws DataAccessException
Collections.EMPTY_LIST.
list in interface RiotDaoDataAccessException
public Object load(String id)
throws DataAccessException
load in interface RiotDaoDataAccessException
public void save(Object entity,
Object parent)
throws DataAccessException
save in interface RiotDaoDataAccessException
public Object merge(Object entity)
throws DataAccessException
merge in interface RiotDaoDataAccessException
public void update(Object entity)
throws DataAccessException
update in interface RiotDaoDataAccessException
public void delete(Object entity,
Object parent)
throws DataAccessException
delete in interface RiotDaoDataAccessException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||