| IBM WebSphere Extended Deployment (XD)TM
Release 6.0.1 |
setOptimisticCallback(OptimisticCallback)
Field Summary | |
---|---|
public Byte | NULL_OPTIMISTIC_VERSION
Special value returned by getVersionObjectForValue if the default
OptimisticCallback is used by a BackingMap since the
com.
|
Method Summary | |
---|---|
public
Object | getVersionedObjectForValue(java.lang.Object)
This may simply return the value (must be a copy) or it may return an attribute
of the value that can be used for versioning purposes.
|
public
void | updateVersionedObjectForValue(java.lang.Object)
This method is called whenever a transaction has updated a value and new versioned object
is needed.
|
public
void | serializeVersionedValue(java.lang.Object, java.io.ObjectOutputStream)
This method will write the versioned value to the specified stream. .
|
public
Object | inflateVersionedValue(java.io.ObjectInputStream)
This method takes the Serializable version of the versioned value and
returns the actual versioned value object.
|
Field Detail |
public static NULL_OPTIMISTIC_VERSION
Method Detail |
public Object getVersionedObjectForValue( | Object value )
|
getVersionedValue()
value
-
The value to version
public void updateVersionedObjectForValue( | Object value )
|
value
-
The value whose version attributed must be updated.
public void serializeVersionedValue( | Object versionedValue , | ObjectOutputStream stream )
|
versionedValue
-
the versioned value object
stream
-
The stream to write the object to
java.io.IOException
public Object inflateVersionedValue( | ObjectInputStream stream )
|
stream
-
The stream where the value was serialized using the serializeVersionedValue method.
java.io.IOExceptionjava.lang.ClassNotFoundException
| IBM WebSphere Extended Deployment (XD)TM
Release 6.0.1 |