|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.persism.PersistableObject
public abstract class PersistableObject
Data objects can optionally inherit from this class. 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.
Constructor Summary | |
---|---|
PersistableObject()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersistableObject()
Method Detail |
---|
public final void saveReadState() throws PersismException
Persistable
saveReadState
in interface Persistable
PersismException
- If an SQL or other exception occurs.public final Persistable getOriginalValue()
Persistable
getOriginalValue
in interface Persistable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |