com.ibm.j2ca.extension.commandpattern
Interface CommandFactory


public interface CommandFactory

CommandFactory The adapter developer implements this interface to create command instances.


Method Summary
 Command createCommand(java.lang.String nodeLevelOperation, commonj.sdo.DataObject inputDataObject)
          createCommand The adapter developer is responsible for implementing the creation of command instances.
 boolean isOOType()
          Specify whether or not the EIS handles data in a regular way.
 

Method Detail

createCommand

public Command createCommand(java.lang.String nodeLevelOperation,
                             commonj.sdo.DataObject inputDataObject)
                      throws javax.resource.ResourceException
createCommand The adapter developer is responsible for implementing the creation of command instances. This allows great flexibility in what a command object can contain. In this method, the adapter developer must decide which command to create, create that command, and populate it with the given data object.

Parameters:
nodeLevelOperation - - this is one of the NodeLevelOperations. This corresponds to the type of command to create.
inputDataObject - - this is the data object that this command instance will be associated with
Returns:
a new command object.
Throws:
javax.resource.ResourceException

isOOType

public boolean isOOType()
Specify whether or not the EIS handles data in a regular way. If function returns "true", you will recieve commands for child objects based on either reading the change summary or internal comparison. If the method returns "false", you will recieve only one command from the command manager for the top level object.

Returns: