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, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public 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.Command
reset
in class AbstractECTargetableCommand
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECApplicationException
- If the trading agreement ID has not been provided.ECException
ECCommand#validateParameters()
public void deleteAllOrderCommentsTCs() throws ECException
ECApplicationException
- If an application error occurs while deleting TCs.ECSystemException
- If a system error occurs while deleting TCs.ECException
public void deleteIncomingTCs() throws ECException
ECApplicationException
- If an application error occurs while deleting TCs.ECSystemException
- If a system error occurs while deleting TCs.ECException
public java.util.Vector getTcVector()
public java.lang.Long getTradingId()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
ECCommand#performExecute()
public void setTcVector(java.util.Vector newTcVector)
setTcVector
in interface DeleteOrderCommentsTCCmd
newTcVector
- The list of term and condition IDs.public void setTradingId(java.lang.Long newTradingId)
setTradingId
in interface DeleteOrderCommentsTCCmd
newTradingid
- The trading ID.