com.ibm.commerce.price.commands
Class DeployPriceTCCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.contract.commands.DeployTCCmdImpl
|
+--com.ibm.commerce.price.commands.DeployPriceTCCmdImpl
- All Implemented Interfaces:
- DeployPriceTCCmd, DeployTCCmd, ECCommand, TaskCommand
- public class DeployPriceTCCmdImpl
- extends DeployTCCmdImpl
- implements DeployPriceTCCmd
This DeployPriceTCCmd
Task Command Implementation
deploys the Price Terms & Conditions defined in a Trading Agreements.
Three types of price Terms&Conditions to be deployed:
- PriceTCPriceListWithOptionalAdjustment
the price list id will be stored in BIGINTFIELD1, adjustment in FLOATFIELD1,
product set id in INTEGERFIELD1.
- PriceTCPriceListWithSelectiveAdjustment
the price list id will be stored in BIGINTFIELD1, adjustment in FLAOTFIELD1,
product set id in INTEGERFIELD1 and adjustment product set in INTEGERFIELD2.
- PriceTCCustomPriceList
the price list id will be stored in BIGINTFIELD1, producst set id in
INTEGERFIELD1.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
java.lang.String |
createPriceListProductSetXML(java.lang.Long priceListId)
If the product set DTD or XML is changed, customer need to overwrite this method |
java.lang.String |
createPriceListXML(java.lang.Long priceListId,
boolean saveFlag)
If the price list DTD or XML is changed, customer need to overwrite this method |
void |
deployCustomPriceList()
Deploys PriceTCCustomPriceList:
the price list id will be stored in BIGINTFIELD1, producst set id in
INTEGERFIELD1. |
void |
deployPriceListWOptAdj()
Deploys PriceTCPriceListWithOptionalAdjustment:
the price list id will be stored in BIGINTFIELD1, adjustment in FLOATFIELD1,
product set id in INTEGERFIELD1. |
void |
deployPriceListWSelAdj()
Deploys PriceTCPriceListWithSelectiveAdjustment:
the price list id will be stored in BIGINTFIELD1, adjustment in FLOATFIELD1,
product set id in INTEGERFIELD1 and adjustment product set in INTEGERFIELD2. |
void |
performExecute()
Execute the command. |
void |
setTermCondition(TermConditionAccessBean aTCAB)
Sets the Term&Condition Access Bean to be deployed. |
void |
setXMLFlag(boolean aXMLFlag)
Sets the indicator for XML creation (not being used). |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
DeployPriceTCCmdImpl
public DeployPriceTCCmdImpl()
- ContractCreateCommand constructor comment.
createPriceListProductSetXML
public java.lang.String createPriceListProductSetXML(java.lang.Long priceListId)
throws ECException,
java.sql.SQLException
- If the product set DTD or XML is changed, customer need to overwrite this method
createPriceListXML
public java.lang.String createPriceListXML(java.lang.Long priceListId,
boolean saveFlag)
throws ECException,
java.sql.SQLException
- If the price list DTD or XML is changed, customer need to overwrite this method
deployCustomPriceList
public void deployCustomPriceList()
throws ECException,
java.sql.SQLException
- Deploys PriceTCCustomPriceList:
the price list id will be stored in BIGINTFIELD1, producst set id in
INTEGERFIELD1.
deployPriceListWOptAdj
public void deployPriceListWOptAdj()
throws ECException
- Deploys PriceTCPriceListWithOptionalAdjustment:
the price list id will be stored in BIGINTFIELD1, adjustment in FLOATFIELD1,
product set id in INTEGERFIELD1.
deployPriceListWSelAdj
public void deployPriceListWSelAdj()
throws ECException
- Deploys PriceTCPriceListWithSelectiveAdjustment:
the price list id will be stored in BIGINTFIELD1, adjustment in FLOATFIELD1,
product set id in INTEGERFIELD1 and adjustment product set in INTEGERFIELD2.
performExecute
public void performExecute()
throws ECException
- Execute the command.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setTermCondition
public void setTermCondition(TermConditionAccessBean aTCAB)
- Sets the Term&Condition Access Bean to be deployed.
- Specified by:
setTermCondition
in interface DeployPriceTCCmd
- Overrides:
setTermCondition
in class DeployTCCmdImpl
- Following copied from interface:
com.ibm.commerce.price.commands.DeployPriceTCCmd
- Parameters:
aTCAB
- TermConditionAccessBean
setXMLFlag
public void setXMLFlag(boolean aXMLFlag)
- Sets the indicator for XML creation (not being used).
- Specified by:
setXMLFlag
in interface DeployPriceTCCmd
- Following copied from interface:
com.ibm.commerce.price.commands.DeployPriceTCCmd
- Parameters:
aXMLFlag
- The indicator for XML creation.