|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of the domain object for which this instance is to be
used.ID
- The type of the id of the domain object for which this instance is
to be used.public interface GenericDaoWrite<T,ID extends Serializable>
Interface for a Data Access Object that can be used for a single specified type domain object for write operations. A single instance implementing this interface can be used only for the type of domain object specified in the type parameters.
Method Summary | |
---|---|
void |
attachClean(T persistentObject)
Reattach an object with the current session. |
void |
clear()
|
void |
delete(T persistentObject)
deletes an object from persistent storage |
void |
evict(T persistentObject)
|
void |
flush()
|
T |
merge(T persistentObject)
Copied from the Hibernate docs: Copy the state of the given object onto the persistent object with the same identifier. |
void |
refresh(T persistentObject)
Retrieves an object from persistent storage and refreshes its state in memory |
T |
save(T persistentObject)
Saves an object into persistent storage |
T |
saveOrUpdate(T persistentObject)
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 |
T |
update(T persistentObject)
Updates an already existing object, throws an exception if the object has not yet been saved |
Method Detail |
---|
T update(T persistentObject) throws DataAccessException
DataAccessException
T save(T persistentObject) throws DataAccessException
DataAccessException
T saveOrUpdate(T persistentObject) throws DataAccessException
DataAccessException
void delete(T persistentObject) throws DataAccessException
DataAccessException
void refresh(T persistentObject) throws DataAccessException
DataAccessException
T merge(T persistentObject) throws DataAccessException
DataAccessException
void evict(T persistentObject) throws DataAccessException
DataAccessException
void flush()
void clear()
void attachClean(T persistentObject) throws DataAccessException
persistentObject
-
DataAccessException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |