public class FetchCatalogEntryInstallmentPriceCmdImpl extends AbstractFetchNounUsingBusinessObjectMediatorCmdImpl implements FetchCatalogEntryInstallmentPriceCmd
Constructor and Description |
---|
FetchCatalogEntryInstallmentPriceCmdImpl()
This method is the default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected com.ibm.commerce.installment.facade.datatypes.CatalogEntryInstallmentPriceType | buildNoun(java.lang.Long anCatalogEntryId, java.lang.String astrPaymentMethodName, java.math.BigDecimal abdNonInstallmentPrice)
This method builds the logical noun.
|
protected java.lang.Long[] | findAncestorCatalogGroupIds(java.lang.Long anCatalogEntryId)
This method fetches the catalog group path that represents the ancestors of the specified catalogEntry.
|
protected com.ibm.commerce.installment.facade.datatypes.InstallmentOptionType[] | findInstallmentOptions(java.lang.Long anCatalogEntryId, java.lang.String astrPaymentMethodName)
This method gets the installment option for a specific catalog entry Id and payment method name.
|
protected com.ibm.commerce.installment.facade.datatypes.InstallmentRuleType[] | findInstallmentRules(java.lang.String astrXPath, java.lang.String astrAccessProfile)
This method fetches the InstallmentRule logical noun by the specified search XPath and the access profile.
|
protected java.lang.Long | findParentCatalogEntryId(java.lang.Long anCatalogEntryId)
This method fetches the parent catalog entry for the specified catalog entry, using JDBCQueryService.
|
protected java.lang.Long[] | getCatalogEntryIds() |
protected java.lang.Long | getCatalogId() |
protected CommerceFoundationFactory | getCommerceFoundationFactory()
This method will return the default instance of the Commerce Foundation Factory.
|
protected java.lang.Long | getContractId() |
protected java.lang.String | getCurrency() |
protected com.ibm.commerce.installment.facade.datatypes.InstallmentFactory | getInstallmentFactory()
This method returns the default instance of the Installment Factory.
|
protected java.math.BigDecimal[] | getNonInstallmentPrices() |
java.util.List | getNouns()
This method returns the list of nouns that have been retrieved by the business object manager that matches the specified XPath expression.
|
protected java.lang.String[] | getPaymentMethodNames() |
protected StoreAccessBean | getStore() |
protected java.lang.Integer | getStoreId() |
protected java.lang.String | getXPathParameterValue(SearchExpression aSearchExpression, java.lang.String astrName)
This method is used to extract the XPath parameter from the SearchExpression.
|
void | performExecute()
This method calls the business object manager to execute the search expression that was extracted by the get business object document.
|
void | reset()
This method resets the instance variables so the command can be reused.
|
protected void | resolveParameters()
This method is used to preset the parameters which are required for building the CatalogEntryInstallmentPrice logical noun.
|
protected void | setCatalogEntryIds(java.lang.Long[] anCatalogEntryIds) |
protected void | setCatalogId(java.lang.Long anCatalogId) |
protected void | setContractId(java.lang.Long anContractId) |
protected void | setCurrency(java.lang.String astrCurrency) |
protected void | setNonInstallmentPrices(java.math.BigDecimal[] abdNonInstallmentPrices) |
protected void | setNouns(java.util.List alistNouns)
This method sets the list of nouns that have been retrieved by the business object manager that matches the specified XPath expression.
|
protected void | setPaymentMethodNames(java.lang.String[] astrPaymentMethodNames) |
protected void | setStore(StoreAccessBean aabStore) |
protected void | setStoreId(java.lang.Integer anStoreId) |
public FetchCatalogEntryInstallmentPriceCmdImpl()
protected java.lang.Integer getStoreId()
protected void setStoreId(java.lang.Integer anStoreId)
protected java.lang.Long getContractId()
protected void setContractId(java.lang.Long anContractId)
protected java.lang.String getCurrency()
protected void setCurrency(java.lang.String astrCurrency)
protected StoreAccessBean getStore()
protected void setStore(StoreAccessBean aabStore)
protected java.lang.Long getCatalogId()
protected void setCatalogId(java.lang.Long anCatalogId)
protected java.lang.Long[] getCatalogEntryIds()
protected void setCatalogEntryIds(java.lang.Long[] anCatalogEntryIds)
protected java.lang.String[] getPaymentMethodNames()
protected void setPaymentMethodNames(java.lang.String[] astrPaymentMethodNames)
protected java.math.BigDecimal[] getNonInstallmentPrices()
protected void setNonInstallmentPrices(java.math.BigDecimal[] abdNonInstallmentPrices)
public java.util.List getNouns()
protected void setNouns(java.util.List alistNouns)
public void reset()
public void performExecute() throws java.lang.Exception
protected void resolveParameters() throws java.lang.Exception
protected com.ibm.commerce.installment.facade.datatypes.CatalogEntryInstallmentPriceType buildNoun(java.lang.Long anCatalogEntryId, java.lang.String astrPaymentMethodName, java.math.BigDecimal abdNonInstallmentPrice) throws java.lang.Exception
protected com.ibm.commerce.installment.facade.datatypes.InstallmentOptionType[] findInstallmentOptions(java.lang.Long anCatalogEntryId, java.lang.String astrPaymentMethodName) throws java.lang.Exception
First it will compose a search XPath string and call the findInstallmentRules to fetch the Installment option for that CatalogEntry.
Then it will check if the InstallmentCondition is qualified for the catalog entry.If not, it will return null, or else it will return InstallmentOption for the specified catalog entry.
protected java.lang.String getXPathParameterValue(SearchExpression aSearchExpression, java.lang.String astrName) throws java.lang.Exception
protected java.lang.Long findParentCatalogEntryId(java.lang.Long anCatalogEntryId) throws java.lang.Exception
protected java.lang.Long[] findAncestorCatalogGroupIds(java.lang.Long anCatalogEntryId) throws java.lang.Exception
protected com.ibm.commerce.installment.facade.datatypes.InstallmentRuleType[] findInstallmentRules(java.lang.String astrXPath, java.lang.String astrAccessProfile) throws java.lang.Exception
protected CommerceFoundationFactory getCommerceFoundationFactory()
protected com.ibm.commerce.installment.facade.datatypes.InstallmentFactory getInstallmentFactory()