com.ibm.commerce.price.commands
Class DeployPriceTCCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.contract.commands.DeployTCCmdImpl
                          |
                          +--com.ibm.commerce.price.commands.DeployPriceTCCmdImpl
All Implemented Interfaces:
DeployPriceTCCmd, DeployTCCmd, ECCommand, ECTargetableCommand, 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:

This command calls the following TaskCommands:

This command uses the following AccessBeans:
See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
 
Fields inherited from class com.ibm.commerce.contract.commands. DeployTCCmdImpl
abTC, CLASSNAME
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.price.commands. DeployPriceTCCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
DeployPriceTCCmdImpl()
          ContractCreateCommand constructor comment.
 
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 change, 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.contract.commands. DeployTCCmdImpl
getTargetStoreId, setTargetStoreId
 
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, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, 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.contract.commands. DeployTCCmd
getTargetStoreId, setTargetStoreId
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values
Constructor Detail

DeployPriceTCCmdImpl

public DeployPriceTCCmdImpl()
ContractCreateCommand constructor comment.
Method Detail

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
Parameters:
priceListId - the priceList to create productset XML
Returns:
String a productset XML string
Throws:
ECException
java.sql.SQLException

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 change, customer need to overwrite this method
Parameters:
priceListId - a prictlist ID to be used to create XML string
saveFlag - true if save to DB
Returns:
String generated pricelist XML file
Throws:
ECException
java.sql.SQLException

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.
Throws:
ECException
java.sql.SQLException

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.
Throws:
ECException

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.
Throws:
ECException

performExecute

public void performExecute()
                    throws ECException
Execute the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

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
Parameters:
aTCAB - the termcondition accessbean to be deployed

setXMLFlag

public void setXMLFlag(boolean aXMLFlag)
Sets the indicator for XML creation (not being used).
Specified by:
setXMLFlag in interface DeployPriceTCCmd
Parameters:
aXMLFlag - true to create xml string