|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The persistent class.PK
- The class of the primary key used to identify the objects.public interface GenericDAO<T,PK extends java.io.Serializable>
A generic class for managing storage and retrieval of persistent objects.
Method Summary | |
---|---|
PK |
create(T newInstance)
Persist the newInstance object into database. |
void |
delete(T persistentObject)
Remove an object from persistent storage in the database. |
T |
read(PK id)
Retrieve an object that was previously persisted to the database using the indicated id as primary key. |
void |
update(T transientObject)
Save changes made to a persistent object. |
Method Detail |
---|
PK create(T newInstance)
newInstance
- the object to persist.
T read(PK id)
id
- the key of the object to be retrieved.
void update(T transientObject)
transientObject
- the object to be updated.void delete(T persistentObject)
persistentObject
- the object to be deleted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |