|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - The entity type to be supported.public interface EntityManager<T extends Entity>
Defines the dataset methods available for manipulating entities.
| Method Summary | |
|---|---|
void |
addEntity(T entity)
Adds the specified entity to the database. |
boolean |
exists(long id)
Indicates if the specified entity exists in the database. |
T |
getEntity(long id)
Retrieves an entity by its identifier. |
ReleasableIterator<T> |
iterate()
Returns an iterator providing access to all entities in the database. |
void |
modifyEntity(T entity)
Updates the specified entity details in the database. |
void |
removeEntity(long entityId)
Removes the specified entity from the database. |
| Method Detail |
|---|
T getEntity(long id)
id - The id of the entity.
ReleasableIterator<T> iterate()
boolean exists(long id)
id - The id of the entity.
void addEntity(T entity)
entity - The entity to add.void modifyEntity(T entity)
entity - The entity to update.void removeEntity(long entityId)
entityId - The id of the entity to remove.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||