|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GenericDao<T,ID extends Serializable>
A generic dao interface for crud operations on model objects in the management application.
| Method Summary | |
|---|---|
void |
create(T data)
Create the submitted obj. |
void |
createOrUpdate(T data)
Create or update the submitted obj. |
void |
delete(T data)
Deletes the submitted obj |
void |
evict(T data)
Evicts the obj from persistent cache. |
void |
flush()
Synchronizes persistence layer's state with the datastore. |
T |
getById(ID id)
Returns the obj T with the given id, or null if there is no such entity. |
| Method Detail |
|---|
T getById(ID id)
throws DataAccessException
id - the id of the entity to return
DataAccessException
void create(T data)
throws DataAccessException
data - obj to be created
DataAccessException
void createOrUpdate(T data)
throws DataAccessException
data - the obj to create or update.
DataAccessException
void delete(T data)
throws DataAccessException
data - obj to delete
DataAccessExceptionvoid flush()
void evict(T data)
data - the obj to evict
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||