|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
GenericDaoReadOnly
and GenericDaoWrite
public interface DataAccessObject
Suggested interface for a class used to retrieve and save persistent objects from a persistance storage; this interface has been heavily influenced by the Hibernate interfaces, and was authored without the benefit of studying existing standards, such as JSRs, or other persistance tools, such as TopLink or Apache's ORM Bridge.
Method Summary | |
---|---|
void |
delete(Object persistentObject)
Deprecated. deletes an object from persistent storage |
Object |
merge(Object persistentObject)
Deprecated. Copied from the Hibernate docs: Copy the state of the given object onto the persistent object with the same identifier. |
void |
refresh(Object persistentObject)
Deprecated. Retrieves an object from persistent storage and refreshes its state in memory |
Serializable |
save(Object persistentObject)
Deprecated. Saves an object into persistent storage |
void |
saveOrUpdate(Object persistentObject)
Deprecated. Used when it is desireable to save objects, whether or not they have been saved before or not; this method will first check whether the object already exists in storage, and will than call Save or Update, accordingly |
void |
update(Object persistentObject)
Deprecated. Updates an already existing object, throws an exception if the object has not yet been saved |
Method Detail |
---|
void update(Object persistentObject) throws DataAccessException
DataAccessException
Serializable save(Object persistentObject) throws DataAccessException
DataAccessException
void saveOrUpdate(Object persistentObject) throws DataAccessException
DataAccessException
void delete(Object persistentObject) throws DataAccessException
DataAccessException
void refresh(Object persistentObject) throws DataAccessException
DataAccessException
Object merge(Object persistentObject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |