org.openmdx.compatibility.base.accessor.object.spi
Class InstanceCallbackAdapter

java.lang.Object
  extended by org.openmdx.compatibility.base.accessor.object.spi.InstanceCallbackAdapter
All Implemented Interfaces:
EventListener, InstanceCallbackListener

Deprecated.

public class InstanceCallbackAdapter
extends Object
implements InstanceCallbackListener


Constructor Summary
InstanceCallbackAdapter(InstanceCallbacks_1_0 synchronization)
          Deprecated.  
 
Method Summary
 void postLoad(InstanceCallbackEvent instanceCallback)
          Deprecated. Called after the values are loaded from the data store into this instance.
 void preClear(InstanceCallbackEvent instanceCallback)
          Deprecated. Called before the values in the instance are cleared.
 void preDelete(InstanceCallbackEvent instanceCallback)
          Deprecated. Called before the instance is deleted.
 void preStore(InstanceCallbackEvent instanceCallback)
          Deprecated. Called before the values are stored from this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceCallbackAdapter

public InstanceCallbackAdapter(InstanceCallbacks_1_0 synchronization)
Deprecated. 
Method Detail

postLoad

public void postLoad(InstanceCallbackEvent instanceCallback)
              throws ServiceException
Deprecated. 
Description copied from interface: InstanceCallbackListener
Called after the values are loaded from the data store into this instance.

Derived fields should be initialized in this method. The context in which this call is made does not allow access to other persistent Object_1_0 instances.

Specified by:
postLoad in interface InstanceCallbackListener
Parameters:
instanceCallback - the instance callback event
Throws:
ServiceException - in case of failure
See Also:
InstanceCallbackEvent.POST_LOAD

preStore

public void preStore(InstanceCallbackEvent instanceCallback)
              throws ServiceException
Deprecated. 
Description copied from interface: InstanceCallbackListener
Called before the values are stored from this instance.

Fields that might have been affected by modified non-persistent fields should be updated in this method.

The context in which this call is made allows access to the ObjectFactory_1_0 instance and other persistent Object_1_0 instances.

Specified by:
preStore in interface InstanceCallbackListener
Parameters:
instanceCallback - the instance callback event
Throws:
ServiceException - in case of failure or veto
See Also:
InstanceCallbackEvent.PRE_STORE

preClear

public void preClear(InstanceCallbackEvent instanceCallback)
              throws ServiceException
Deprecated. 
Description copied from interface: InstanceCallbackListener
Called before the values in the instance are cleared.

Transient fields should be cleared in this method. Associations between this instance and others in the runtime environment should be cleared.

Specified by:
preClear in interface InstanceCallbackListener
Parameters:
instanceCallback - the instance callback event
Throws:
ServiceException - in case of failure
See Also:
InstanceCallbackEvent.PRE_CLEAR

preDelete

public void preDelete(InstanceCallbackEvent instanceCallback)
               throws ServiceException
Deprecated. 
Description copied from interface: InstanceCallbackListener
Called before the instance is deleted. This method is called before the state transition to persistent-deleted or persistent-new-deleted. Access to field values within this call are valid. Access to field values after this call are disallowed.

Specified by:
preDelete in interface InstanceCallbackListener
Parameters:
instanceCallback - the instance callback event
Throws:
ServiceException - in case of failure or veto
See Also:
InstanceCallbackEvent.PRE_DELETE


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.