|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectDao
Method Summary | |
---|---|
java.lang.Class |
getPersistentClass()
The class that is being persisted |
java.lang.Object |
load(long ID)
Loads a persistnce DAO object from the persistence store. |
void |
remove(java.lang.Object persistentObject)
Removes the DAO object from the persistence store. |
void |
save(java.lang.Object persistentObject)
Saves a new DAO object to the persistence store. |
void |
update(java.lang.Object persistentObject)
Updates an existing DAO object, if the object does not exist it will be added to the persistence store. |
Method Detail |
---|
java.lang.Class getPersistentClass()
void save(java.lang.Object persistentObject) throws org.springframework.dao.DataAccessException
persistentObject
- The object to save.
org.springframework.dao.DataAccessException
- A persistence exception has occurred.void update(java.lang.Object persistentObject) throws org.springframework.dao.DataAccessException
persistentObject
- The object to update.
org.springframework.dao.DataAccessException
- A persistence exception has occurred.void remove(java.lang.Object persistentObject) throws org.springframework.dao.DataAccessException
persistentObject
- The object to remove.
org.springframework.dao.DataAccessException
- A persistence exception has occurred.java.lang.Object load(long ID) throws ObjectNotFoundException
ID
- The unique identifier of the object to load from the persistence store.
ObjectNotFoundException
- if the given object with ID
for the persistent class does not exist
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |