org.exolab.castor.persist.spi
public interface CallbackInterceptor
Version: $Revision: 1.2 $ $Date: 2005/04/17 10:29:29 $
Method Summary | |
---|---|
void | created(Object object)
Called to indicate that an object has been created.
|
void | creating(Object object, Database db)
Called to indicate that an object is to be created in persistent
storage.
|
Class | loaded(Object object, AccessMode accessMode)
Called to indicate that the object has been loaded from persistent
storage.
|
void | releasing(Object object, boolean committed)
Called to indicate that an object has been made transient.
|
void | removed(Object object)
Called to indicate that an object has been deleted.
|
void | removing(Object object)
Called to indicate that an object is to be deleted.
|
void | storing(Object object, boolean modified)
Called to indicate that an object is to be stored in persistent
storage.
|
void | updated(Object object)
Called to indicate that an object has been updated at the end of
a "long" transaction.
|
void | using(Object object, Database db)
Called to indicate that an object has been made persistent.
|
Parameters: object The object
Parameters: object The object db The database in which this object will be created
Parameters: object The object
Returns: null or the extending Class. In the latter case Castor will reload the object of the given class with the same identity.
Throws: Exception An exception occured, the object cannot be loaded
This method is made at commit or rollback time on all objects that were presistent during the life time of the transaction.
Parameters: object The object committed True if the object has been commited, false if rollback or otherwise cancelled
This method is called during db.remove().
Parameters: object The object
This method is made at commit time on objects deleted during the transaction before setting their fields to null.
Parameters: object The object
Parameters: object The object modified Is the object modified?
Throws: Exception An exception occured, the object cannot be stored
Parameters: object The object
Parameters: object The object db The database to which this object belongs