java.lang.Object
net.sf.persism.PersistableObject<T>
- All Implemented Interfaces:
Cloneable
,Persistable<T>
Persism uses information from this class to detect which properties are modified in your data objects and only
includes those columns in the SQL UPDATE statements. Data objects can optionally inherit from this class.
- Since:
- 9/15/11 7:14 AM
- Author:
- Dan Howard
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
PersistableObject
public PersistableObject()
-
-
Method Details
-
saveReadState
Description copied from interface:Persistable
Saves the current state of the data object to later detect changes for SQL UPDATE statements. Persism calls this method internally, you usually don't have to call this method yourself.- Specified by:
saveReadState
in interfacePersistable<T>
- Throws:
PersismException
- If an SQL or other exception occurs.- See Also:
-
readOriginalValue
Description copied from interface:Persistable
Getter (but not a Getter) for the data object in it's original state. The state at the time it was read from the database.- Specified by:
readOriginalValue
in interfacePersistable<T>
- Returns:
- The data object in it's original state.
- See Also:
-
clone
Used by saveReadState for persismOriginalValue
-