IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.plugins
Interface ValueProxyInfo


public interface ValueProxyInfo

This interface can be used by value objects to inform a BackingMap or Loader which attribute(s) have been dirtied. This mechanism allows the BackingMap and Loader to interrogate the set of changed attributes in the value object instead of just assuming the whole value object has been updated. For this to be useful, the application must only use the getter and setter methods defined for the value object's interface.

Since:
WAS XD 6.0, XC10
See Also:
CopyMode.COPY_ON_WRITE, BackingMap.setCopyMode(CopyMode, Class), Loader.batchUpdate(TxID, LogSequence)

Method Summary
 void ibmClearDirtyAttributes()
          Clears the list of dirty attributes.
 List ibmGetDirtyAttributes()
          Returns a list of dirty attributes based on the value interface set on the map.
 Object ibmGetRealValue()
          Returns the real value object this proxy represents.
 

Method Detail

ibmGetDirtyAttributes

List ibmGetDirtyAttributes()
Returns a list of dirty attributes based on the value interface set on the map.

The attribute name is always starts with an upper case letter. For example, if the setter for the attribute is setPrice then 'Price' is the string returned here. The runtime uses substring(3) of the setter method name as the attribute name.

Returns:
List of attribute names (Strings)

ibmGetRealValue

Object ibmGetRealValue()
Returns the real value object this proxy represents.

Needed internally by the BackingMap to return a separate proxy for each transaction.

Returns:
actual value object.

ibmClearDirtyAttributes

void ibmClearDirtyAttributes()
Clears the list of dirty attributes.


IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.