org.exolab.castor.jdo
public interface Persistent
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:08 $
Method Summary | |
---|---|
void | jdoAfterCreate()
Called to indicate that an object has been created in persistent
storage. |
void | jdoAfterRemove()
Called to indicate that an object has been removed from persistent
storage. |
void | jdoBeforeCreate(Database db)
Called to indicate that an object is to be created in persistent
storage. |
void | jdoBeforeRemove()
Called to indicate that an object is to be removed from persistent
storage. |
Class | jdoLoad(short accessMode)
Called to indicate that the object has been loaded from persistent
storage. |
void | jdoPersistent(Database db)
Called to set the database to which this object belongs when
this object becomes persistent. |
void | jdoStore(boolean modified)
Called to indicate that an object is to be stored in persistent
storage. |
void | jdoTransient()
Called to indicate the object is now transient. |
void | jdoUpdate()
Called to indicate that an object has been included to the current
transaction by means of db.update() method (at the end of a "long "
transaction).
|
Parameters: db The database in which this object will be created
Parameters: accessMode The access mode that was specified for this object either in {@link org.exolab.castor.jdo.OQLQuery#execute( short accessMode )}, or in {@link Database#load( Class type, Object identity, short accessMode )}. The constants are defined in {@link Database}.
Returns: the return value is discarded
Throws: Exception An exception occured, the object cannot be loaded
Called when the object is first created as the result of a query, perior to calling {@link #jdoLoad}, or after {@link Database#create} has been called on the object, prior to calling {@link #jdoStore}.
Parameters: db The database to which this object belongs
Parameters: modified Is the object modified?
Throws: Exception An exception occured, the object cannot be stored
Called when the object #setFacetscompletes following any call to {@link #jdoStore} or when the object is deleted from the database.
Throws: Exception An exception occured, the object cannot be stored