com.xavax.xstore
Class AbstractPObject

Object
  extended byAbstractPObject
All Implemented Interfaces:
PObject

public abstract class AbstractPObject
extends Object
implements PObject

AbstractPObject is a base class for persistent objects that implements the PObject interface. A class does not have to extend AbstracePObject to be persisted; however, doing so does eliminate the need to implement PObject in the class.


Constructor Summary
AbstractPObject()
           
 
Method Summary
 void clearDirty()
          Clears the dirty bit indicating the object has not been modified since it was created or loaded from the database.
 boolean isDirty()
          Returns true if the object has been modified since it was created or loaded from the database.
 void post$load()
          This method is called after the object loader has loaded a persistent object from the database.
 void setDirty()
          Sets the dirty bit indicating the object has been modified since it was created or loaded from the database.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPObject

public AbstractPObject()
Method Detail

isDirty

public boolean isDirty()
Returns true if the object has been modified since it was created or loaded from the database.

Specified by:
isDirty in interface PObject
Returns:
true if the object has been modified.

clearDirty

public void clearDirty()
Clears the dirty bit indicating the object has not been modified since it was created or loaded from the database.

Specified by:
clearDirty in interface PObject

setDirty

public void setDirty()
Sets the dirty bit indicating the object has been modified since it was created or loaded from the database.

Specified by:
setDirty in interface PObject

post$load

public void post$load()
This method is called after the object loader has loaded a persistent object from the database. It is typically used to initialize transient members of the object.

Specified by:
post$load in interface PObject