net.sf.persism
Interface Persistable

All Known Implementing Classes:
PersistableObject

public interface Persistable

Interface for PersistableObject class. 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:
PersistableObject for implementation.

Method Summary
 Persistable getOriginalValue()
          Getter for the data object in it's original state.
 void saveReadState()
          Saves the current state of the data object to later detect changes for SQL UPDATE statements.
 

Method Detail

saveReadState

void saveReadState()
                   throws PersismException
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.

getOriginalValue

Persistable getOriginalValue()
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.