|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataAccessObject
This interface should be implemented by classes which provide some form of persistence.
| Nested Class Summary | |
|---|---|
static class |
DataAccessObject.SearchInfo
Instances of this class represents a set of criterias to be used in persistence tier searches. |
| Method Summary | |
|---|---|
java.lang.Object |
findByKey(java.io.Serializable key)
Retrieves from the persistence tier the object which primary key equals the one specified. |
java.util.Collection |
list(DataAccessObject.SearchInfo info)
Returns a collection of objects representing all the persistence tier informations matching the specified search criterias. |
void |
remove(java.lang.Object object)
Permanently deletes an instance from the persistence tier. |
void |
update(java.lang.Object object)
Ensures the persistence tier representation of the object is consistent with the in memory representation. |
| Method Detail |
|---|
java.lang.Object findByKey(java.io.Serializable key)
throws DAOException
key - the primary key used to search the instance into the
persistence tier.
DAOException - if an error occur while accessing the persistence
tier.
UndefinedKeyException - if the specified primary key is not present
on the persistence tier.
void remove(java.lang.Object object)
throws DAOException
object - the instance representing the informations to be deleted
from the store.
DAOException - if an error occur while accessing the persistence
tier.
void update(java.lang.Object object)
throws DAOException
object - the object to be persisted.
DAOException - if an error occur while accessing the persistence
tier
java.util.Collection list(DataAccessObject.SearchInfo info)
throws DAOException
info - the criterias to be used to search the persistence tier.
DAOException - if an error occur while accessing the persistence
tier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||