java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.negotiation.commands.GenBidRefCmdImpl
Generates a unique Bid Reference key.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT Copyright statement. |
static java.lang.String |
keySeparator The generated key will be formatted in three numeric sub-keys separated by hyphens - the keySeperator is the hyphen. |
static int |
LAST_SUBKEY_LEN The last subkey length. |
static int |
MIDDLE_SUBKEY_LEN The length of the middle subkey. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.negotiation.commands. GenBidRefCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
GenBidRefCmdImpl() GenBidRefImpl default constructor. |
Method Summary | |
---|---|
java.lang.String |
getBidReferenceKey() Returns a unique bid reference key. |
boolean |
isReadyToCallExecute() Verifies that the this command is ready to be executed. |
void |
performExecute() Genarates a unique bid reference number and saves locally for future retrieval. |
void |
setBidType(java.lang.String bidType) Sets this bid type. |
void |
setErrorTaskName(java.lang.String errorTaskName) Set error task name that will be returned by the exceptions. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String keySeparator
public static final int MIDDLE_SUBKEY_LEN
public static final int LAST_SUBKEY_LEN
Constructor Detail |
---|
public GenBidRefCmdImpl()
Method Detail |
---|
public java.lang.String getBidReferenceKey()
getBidReferenceKey
in interface
GenBidRefCmd
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class
AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- -public void setBidType(java.lang.String bidType)
setBidType
in interface
GenBidRefCmd
bidType
- java.lang.String - Regular or Auto bid
type.public void setErrorTaskName(java.lang.String errorTaskName)
setErrorTaskName
in interface
GenBidRefCmd
errorTaskName
- java.lang.String