public class DeleteOrderCommentsTCCmdImpl extends TaskCommandImpl implements DeleteOrderCommentsTCCmd
Behaviour
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
java.util.Vector |
tcVector
Vector.
|
java.lang.Long |
tradingId
Trading Id.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
DeleteOrderCommentsTCCmdImpl()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAllOrderCommentsTCs()
Finds all the terms and conditions of type "OrderComments" for the given trading agreement
ID and deletes them.
|
void |
deleteIncomingTCs()
Finds all the terms and conditions of type "OrderComments" for the given trading agreement
ID.
|
java.util.Vector |
getTcVector()
Retrieves the list of IDs of terms and conditions to be deleted.
|
java.lang.Long |
getTradingId()
Retrieves the trading agreement ID.
|
void |
performExecute()
Calls the deleteAllOrderCommentsTCs method if the incoming
tcVector is null.
|
void |
reset()
Reset the command.
|
void |
setTcVector(java.util.Vector newTcVector)
Stores the list of IDs corresponding to the term and conditions to be deleted.
|
void |
setTradingId(java.lang.Long newTradingId)
Stores the trading ID.
|
void |
validateParameters()
Checks for an incoming trading agreement ID.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String COPYRIGHT
public java.lang.Long tradingId
public java.util.Vector tcVector
public DeleteOrderCommentsTCCmdImpl()
public void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECApplicationException - If the trading agreement ID has not been provided.ECExceptionECCommand#validateParameters()public void deleteAllOrderCommentsTCs()
throws ECException
ECApplicationException - If an application error occurs while deleting TCs.ECSystemException - If a system error occurs while deleting TCs.ECExceptionpublic void deleteIncomingTCs()
throws ECException
ECApplicationException - If an application error occurs while deleting TCs.ECSystemException - If a system error occurs while deleting TCs.ECExceptionpublic java.util.Vector getTcVector()
public java.lang.Long getTradingId()
public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionECCommand#performExecute()public void setTcVector(java.util.Vector newTcVector)
setTcVector in interface DeleteOrderCommentsTCCmdnewTcVector - The list of term and condition IDs.public void setTradingId(java.lang.Long newTradingId)
setTradingId in interface DeleteOrderCommentsTCCmdnewTradingid - The trading ID.