EclipseLink 1.0_1.0M2 API Reference - Incubation

org.eclipse.persistence.sessions.coordination
Class MergeChangeSetCommand

java.lang.Object
  extended by org.eclipse.persistence.sessions.coordination.Command
      extended by org.eclipse.persistence.sessions.coordination.MergeChangeSetCommand
All Implemented Interfaces:
java.io.Serializable

public class MergeChangeSetCommand
extends Command

Purpose: Provide a remote command implementation for remote cache merges of changes.

Description: This command provides the implementation for cache synchronization using RCM.

See Also:
Serialized Form
Author:
Steven Vo
Since:
OracleAS TopLink 10g (9.0.4)

Field Summary
protected  UnitOfWorkChangeSet changeSet
          The changes to be applied remotely
protected  byte[] changeSetBytes
           
 
Constructor Summary
MergeChangeSetCommand()
           
 
Method Summary
 boolean convertChangeSetToByteArray(AbstractSession session)
          INTERNAL: Custom serialize this change set by converting it to a byte array.
 void executeWithSession(AbstractSession session)
          INTERNAL: This method will be invoked by the RCM only when the CommandProcessor is a TopLink session.
 UnitOfWorkChangeSet getChangeSet()
          INTERNAL: Return the changes to be applied
 java.lang.String getIdForSDK()
          INTERNAL: This method is used by SDK project to convert this command to XML
 void setChangeSet(UnitOfWorkChangeSet newChangeSet)
          INTERNAL: Set the changes to be applied
 void setIdForSDK(java.lang.String id)
          INTERNAL: This method is used by SDK project to convert this command to XML
 
Methods inherited from class org.eclipse.persistence.sessions.coordination.Command
getServiceId, isInternalCommand, setServiceId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changeSet

protected transient UnitOfWorkChangeSet changeSet
The changes to be applied remotely


changeSetBytes

protected byte[] changeSetBytes
Constructor Detail

MergeChangeSetCommand

public MergeChangeSetCommand()
Method Detail

getChangeSet

public UnitOfWorkChangeSet getChangeSet()
INTERNAL: Return the changes to be applied


setChangeSet

public void setChangeSet(UnitOfWorkChangeSet newChangeSet)
INTERNAL: Set the changes to be applied


convertChangeSetToByteArray

public boolean convertChangeSetToByteArray(AbstractSession session)
                                    throws java.io.IOException
INTERNAL: Custom serialize this change set by converting it to a byte array.

Returns:
false if converted byte array is null. Otherwise, return true.
Throws:
java.io.IOException

executeWithSession

public void executeWithSession(AbstractSession session)
INTERNAL: This method will be invoked by the RCM only when the CommandProcessor is a TopLink session. The session will be passed in for the command to use.

Specified by:
executeWithSession in class Command
Parameters:
session - The session that can be used to execute the command on.

getIdForSDK

public java.lang.String getIdForSDK()
INTERNAL: This method is used by SDK project to convert this command to XML


setIdForSDK

public void setIdForSDK(java.lang.String id)
INTERNAL: This method is used by SDK project to convert this command to XML


EclipseLink 1.0_1.0M2 API Reference - Incubation