|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.jdo.engine.JDOCallback
public class JDOCallback
| Constructor Summary | |
|---|---|
JDOCallback()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JDOCallback()
| Method Detail |
|---|
public void using(Object object,
Database db)
CallbackInterceptor
using in interface CallbackInterceptorobject - The objectdb - The database to which this object belongs
public Class loaded(Object object,
AccessMode accessMode)
throws Exception
CallbackInterceptor
loaded in interface CallbackInterceptorobject - The object
Exception - An exception occured, the object cannot be loaded
public void storing(Object object,
boolean modified)
throws Exception
CallbackInterceptor
storing in interface CallbackInterceptorobject - The objectmodified - Is the object modified?
Exception - An exception occured, the object cannot be stored
public void creating(Object object,
Database db)
throws Exception
CallbackInterceptor
creating in interface CallbackInterceptorobject - The objectdb - The database in which this object will be created
Exception
public void created(Object object)
throws Exception
CallbackInterceptor
created in interface CallbackInterceptorobject - The object
Exception
public void removing(Object object)
throws Exception
CallbackInterceptorThis method is made at commit time on objects deleted during the transaction before setting their fields to null.
removing in interface CallbackInterceptorobject - The object
Exception
public void removed(Object object)
throws Exception
CallbackInterceptorThis method is called during db.remove().
removed in interface CallbackInterceptorobject - The object
Exception
public void releasing(Object object,
boolean committed)
CallbackInterceptorThis method is made at commit or rollback time on all objects that were presistent during the life time of the transaction.
releasing in interface CallbackInterceptorobject - The objectcommitted - True if the object has been commited, false
if rollback or otherwise cancelled
public void updated(Object object)
throws Exception
CallbackInterceptor
updated in interface CallbackInterceptorobject - The object
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||