public interface ObjectDao
Modifier and Type | Method and Description |
---|---|
Class |
getPersistentClass()
The class that is being persisted
|
Object |
load(long ID)
Loads a persistnce DAO object from the persistence store.
|
void |
remove(Object persistentObject)
Removes the DAO object from the persistence store.
|
void |
save(Object persistentObject)
Saves a new DAO object to the persistence store.
|
void |
update(Object persistentObject)
Updates an existing DAO object, if the object does not exist it will be added to the persistence store.
|
Class getPersistentClass()
void save(Object persistentObject) throws org.springframework.dao.DataAccessException
persistentObject
- The object to save.org.springframework.dao.DataAccessException
- A persistence exception has occurred.void update(Object persistentObject) throws org.springframework.dao.DataAccessException
persistentObject
- The object to update.org.springframework.dao.DataAccessException
- A persistence exception has occurred.void remove(Object persistentObject) throws org.springframework.dao.DataAccessException
persistentObject
- The object to remove.org.springframework.dao.DataAccessException
- A persistence exception has occurred.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 existCopyright © 2013 Atlassian. All Rights Reserved.