|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SimpleDao<T>
Data Access Object (DAO) interface that defines simple generic operations for dealing with a persistent store.
| Method Summary | |
|---|---|
void |
delete(T object)
Deletes the object from a persistent data store. |
T |
getById(Serializable id)
Retrieves a single object from persistent data store based on the primary key. |
List<T> |
getList()
Gets a list of objects from a persistent data store. |
void |
save(T object)
Saves the object to a persistent data store. |
| Method Detail |
|---|
void save(T object)
object - void delete(T object)
object - List<T> getList()
List of objects
T getById(Serializable id)
throws ObjectNotFoundException
id - The id of the object you are retrieving.
ObjectNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||