|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.j2ca.extension.commandpattern.Command
Command This class is designed to represent a node level operation on a data object structure. An adapter generally has several implementation of Command; one for each possible kind of operation. For instance, an adapter implementing CUD operations will generally have three command implemntations: EisCreateCommand, EisDeleteCommand, and EisUpdateCommand.
Field Summary | |
---|---|
static int |
AFTER_PARENT
|
static int |
BEFORE_PARENT
|
Constructor Summary | |
---|---|
Command()
This is the default constructor for Command |
|
Command(commonj.sdo.DataObject dataObject)
This constructor takes a data object. |
Method Summary | |
---|---|
void |
execute()
Execute This execute method is called from the object that's executing the command. |
abstract commonj.sdo.DataObject |
execute(commonj.sdo.DataObject inputObject)
Execute This method executes the command. |
commonj.sdo.ChangeSummary |
getChangeSummary()
|
java.util.ArrayList |
getChildCommands()
|
java.lang.Object |
getConnection()
|
commonj.sdo.DataObject |
getDataObject()
|
java.lang.Object |
getEisRepresentation()
|
int |
getExecutionOrder()
|
LogUtils |
getLogUtils()
|
Command |
getParentCommand()
|
commonj.sdo.DataObject |
getParentDataObject()
|
boolean |
isDelta()
|
void |
setConnection(java.lang.Object connection)
|
void |
setEisRepresentation(java.lang.Object eisRepresentation)
|
void |
setExecutionOrder(int executionOrder)
|
void |
setLogUtils(LogUtils logUtils)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BEFORE_PARENT
public static final int AFTER_PARENT
Constructor Detail |
public Command()
public Command(commonj.sdo.DataObject dataObject)
Method Detail |
public void execute() throws javax.resource.ResourceException
javax.resource.ResourceException
public abstract commonj.sdo.DataObject execute(commonj.sdo.DataObject inputObject) throws javax.resource.ResourceException
inputObject
- the object that this command operates on
javax.resource.ResourceException
- you may throw a ResourceException when the command execution fails.public java.lang.Object getConnection()
public void setConnection(java.lang.Object connection)
connection
- The connection to set.public commonj.sdo.DataObject getParentDataObject()
public Command getParentCommand()
public java.util.ArrayList getChildCommands()
public int getExecutionOrder()
public void setExecutionOrder(int executionOrder)
executionOrder
- The executionOrder to set.public java.lang.Object getEisRepresentation()
public void setEisRepresentation(java.lang.Object eisRepresentation)
eisRepresentation
- The eisRepresentation to set.public commonj.sdo.ChangeSummary getChangeSummary()
public boolean isDelta()
public commonj.sdo.DataObject getDataObject()
public LogUtils getLogUtils()
public void setLogUtils(LogUtils logUtils)
logUtils
- The logUtils to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |