|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GenericDAO<T>
This interface is implemented by DAOs, which support the traditional save, update and delete operations on a single data class.
Method Summary | |
---|---|
void |
delete(Serializable id)
Deletes the given object of the generic's type from the database. |
T |
get(Serializable id)
Returns the database object of the generic's type with the given database Id. |
Class<T> |
getPersistentClass()
|
T |
insert(T t)
Saves the given object of the generic's type to the database. |
T |
merge(T t)
Merges (updates) the given object of the generic's type in the database. |
T |
refresh(T t)
Refreshes (reloads, reverts) the given object of the generic's type from the database. |
T |
update(T t)
Updates the given object of the generic's type in the database. |
Method Detail |
---|
Class<T> getPersistentClass()
T
.T get(Serializable id)
id
- The database Id of the object to be retrieved.
T insert(T t)
t
- The object to be save to the database.
T update(T t)
t
- The object to be updated in the database.
T merge(T t)
t
- The object to be updated in the database.
T refresh(T t)
t
- The object to be reloaded from the database.
void delete(Serializable id)
id
- Database-Id of object to be deleted from the database.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |