|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataStore
View data store.
| Method Summary | ||
|---|---|---|
|
find(Class<T> clazz,
Object primaryKey)
Find the entity of the given class type that is uniquely identified by the given primary key. |
|
|
findAll(Class<T> clazz,
String whereClause)
Find all the entities for the given where clause. |
|
void |
remove(Object entity)
Remove the given entity from persistent storage. |
|
void |
store(Object entity)
Save the given entity to persistent storage. |
|
| Method Detail |
|---|
void store(Object entity)
throws PersistenceException
entity - the entity to be persisted.
PersistenceException - thrown if the given entity can not be persisted
void remove(Object entity)
throws PersistenceException
entity - the entity to be removed.
PersistenceException - thrown if the given entity can not be removed
<T> T find(Class<T> clazz,
Object primaryKey)
throws PersistenceException
T - the entity typeclazz - the entity classprimaryKey - the primary key
PersistenceException - thrown if an error occurs trying to find the entity
<T> Collection<T> findAll(Class<T> clazz,
String whereClause)
throws PersistenceException
T - the entity typeclazz - the entity classwhereClause - the where clause; may be null
PersistenceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||