org.datanucleus.store.mapped.mapping
Interface MappingCallbacks

All Known Implementing Classes:
ArrayMapping, CollectionMapping, EmbeddedPCMapping, InterfaceMapping, MapMapping, ObjectMapping, PersistableIdMapping, PersistableMapping, ReferenceIdMapping, ReferenceMapping

public interface MappingCallbacks

Interface defining a series of callbacks that are called when this mapping goes through certain lifecycle events. This interface would be implemented by any type of mapping that handles a relation and so may need to perform action just before or just after a lifecycle event.


Method Summary
 void insertPostProcessing(ObjectProvider op)
          Hook so that we can handle any post-processing on the insert of a particular field.
 void postFetch(ObjectProvider op)
          Method called after the retrieval of the object, so that additional operations can be performed if necessary.
 void postInsert(ObjectProvider op)
          Method called after the insert of the object so that additional operations can be performed if necessary.
 void postUpdate(ObjectProvider op)
          Method called after the update of the object, so that additional operations can be performed if necessary.
 void preDelete(ObjectProvider op)
          Method called before the delete of objects, so that additional operations can be performed if necessary.
 

Method Detail

insertPostProcessing

void insertPostProcessing(ObjectProvider op)
Hook so that we can handle any post-processing on the insert of a particular field. For example with Oracle we need to insert "EMPTY_CLOB" and then immediately after do a SELECT of it and update the contents of the CLOB/BLOB.

Parameters:
op - ObjectProvider

postInsert

void postInsert(ObjectProvider op)
Method called after the insert of the object so that additional operations can be performed if necessary.

Parameters:
op - ObjectProvider of the owner

postFetch

void postFetch(ObjectProvider op)
Method called after the retrieval of the object, so that additional operations can be performed if necessary.

Parameters:
op - ObjectProvider of the owner

postUpdate

void postUpdate(ObjectProvider op)
Method called after the update of the object, so that additional operations can be performed if necessary.

Parameters:
op - ObjectProvider of the owner

preDelete

void preDelete(ObjectProvider op)
Method called before the delete of objects, so that additional operations can be performed if necessary.

Parameters:
op - ObjectProvider of the owner


Copyright © 2010. All Rights Reserved.