CallbackInterceptorpublic class JDOCallback extends java.lang.Object implements CallbackInterceptor
| Constructor | Description |
|---|---|
JDOCallback() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
created(java.lang.Object object) |
Called to indicate that an object has been created.
|
void |
creating(java.lang.Object object,
Database db) |
Called to indicate that an object is to be created in persistent
storage.
|
java.lang.Class |
loaded(java.lang.Object object,
AccessMode accessMode) |
Called to indicate that the object has been loaded from persistent
storage.
|
void |
modifying(java.lang.Object object) |
Called to indicate that an object has been modified and is up to storing.
|
void |
releasing(java.lang.Object object,
boolean committed) |
Called to indicate that an object has been made transient.
|
void |
removed(java.lang.Object object) |
Called to indicate that an object has been deleted.
|
void |
removing(java.lang.Object object) |
Called to indicate that an object is to be deleted.
|
void |
storing(java.lang.Object object,
boolean modified) |
Called to indicate that an object is to be stored in persistent
storage.
|
void |
updated(java.lang.Object object) |
Called to indicate that an object has been updated at the end of
a "long" transaction.
|
void |
using(java.lang.Object object,
Database db) |
Called to indicate that an object has been made persistent.
|
public void using(java.lang.Object object,
Database db)
CallbackInterceptorusing in interface CallbackInterceptorobject - The objectdb - The database to which this object belongspublic java.lang.Class loaded(java.lang.Object object,
AccessMode accessMode)
throws java.lang.Exception
CallbackInterceptorloaded in interface CallbackInterceptorobject - The objectjava.lang.Exception - An exception occured, the object cannot be loadedpublic void modifying(java.lang.Object object)
throws java.lang.Exception
CallbackInterceptormodifying in interface CallbackInterceptorobject - The objectjava.lang.Exception - An exception occured, the object cannot be storedpublic void storing(java.lang.Object object,
boolean modified)
throws java.lang.Exception
CallbackInterceptorstoring in interface CallbackInterceptorobject - The objectmodified - Is the object modified?java.lang.Exception - An exception occured, the object cannot be storedpublic void creating(java.lang.Object object,
Database db)
throws java.lang.Exception
CallbackInterceptorcreating in interface CallbackInterceptorobject - The objectdb - The database in which this object will be createdjava.lang.Exceptionpublic void created(java.lang.Object object)
throws java.lang.Exception
CallbackInterceptorcreated in interface CallbackInterceptorobject - The objectjava.lang.Exceptionpublic void removing(java.lang.Object object)
throws java.lang.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 objectjava.lang.Exceptionpublic void removed(java.lang.Object object)
throws java.lang.Exception
CallbackInterceptorThis method is called during db.remove().
removed in interface CallbackInterceptorobject - The objectjava.lang.Exceptionpublic void releasing(java.lang.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 cancelledpublic void updated(java.lang.Object object)
throws java.lang.Exception
CallbackInterceptorupdated in interface CallbackInterceptorobject - The objectjava.lang.ExceptionIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com