|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GenericDAO<T,PK extends java.io.Serializable>
Interface to be implemented by DAOs; using Java 5 Generics.
| 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 saved in the database under the given primary key (id). |
void |
update(T transientObject)
Save changes made to a persistent object. |
| Method Detail |
|---|
PK create(T newInstance)
T read(PK id)
void update(T transientObject)
void delete(T persistentObject)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||