- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
PersistableObject
Indicates that Persism should keep track of changed columns in order to only include those columns in the SQL UPDATE statement.
You can use this interface in situations where you can't or don't want your data objects to inherit PersistableObject.
- Since:
- 10/8/11 9:51 AM
- Author:
- Dan Howard
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGetter (but not a Getter) for the data object in it's original state.void
Saves the current state of the data object to later detect changes for SQL UPDATE statements.
-
Method Details
-
saveReadState
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.- Throws:
PersismException
- If an SQL or other exception occurs.- See Also:
-
readOriginalValue
T readOriginalValue()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.- Returns:
- The data object in it's original state.
- See Also:
-