public abstract class AbstractPriceBaseMediator extends AbstractBusinessObjectMediator
It initializes context data that the data load process needs from business context. These are all of the context data available:
Constructor and Description |
---|
AbstractPriceBaseMediator() |
Modifier and Type | Method and Description |
---|---|
protected void | clearUniqueID()
Remove the unique ids being set.
|
protected java.lang.String | getActionString()
Returns the change history action code for the catalog entry.
|
java.lang.String | getContextCurrency()
Gets the currency ID from the business context.
|
java.lang.String | getContextLanguageID()
Gets the language ID from the business context.
|
java.lang.String | getContextOwnerID()
Gets the owner ID from the business context.
|
java.lang.String | getContextStoreID()
Gets the store ID from the business context.
|
com.ibm.commerce.price.facade.datatypes.PriceEntryType | getPriceEntry()
Get the price entry noun part.
|
com.ibm.commerce.price.facade.datatypes.PriceListType | getPriceList()
Get the price list logical noun.
|
void | init()
Performs initialization for the price mediators, by retrieving context data from context services.
|
protected java.lang.Long | longValueOf(java.lang.String aValue, java.lang.String aFieldName, java.lang.String aPathName)
Returns the long value of aValue.
|
protected java.lang.String | resolveOwnerId(PriceListIdentifierType priceListIdentifier)
Resolves the owner ID of the price list identified by priceListIdentifier in the PriceList noun.
|
protected java.lang.String | resolvePriceListName(PriceListIdentifierType priceListIdentifier)
Resolves the price list name identified by priceListIdentifier in the PriceList noun.
|
void | setPriceEntry(com.ibm.commerce.price.facade.datatypes.PriceEntryType priceEntry)
Set the price entry noun part.
|
void | setPriceList(com.ibm.commerce.price.facade.datatypes.PriceListType priceList)
Set the price list logical noun.
|
protected void | setPriceListUniqueId(java.lang.String uniqueId)
Set the PriceList uniqueId in the PriceList logical noun.
|
public java.lang.String getContextLanguageID()
public java.lang.String getContextOwnerID()
public java.lang.String getContextStoreID()
public java.lang.String getContextCurrency()
protected java.lang.String resolvePriceListName(PriceListIdentifierType priceListIdentifier)
protected java.lang.String resolveOwnerId(PriceListIdentifierType priceListIdentifier)
Note that this method must not be called before init().
protected java.lang.Long longValueOf(java.lang.String aValue, java.lang.String aFieldName, java.lang.String aPathName) throws DataLoadException
It does this by first checking the column value aValue's format to see whether it is valid for the column type Types.BIGINT. If it is valid, returns the Long value of aValue.
public void init() throws DataLoadException
Context data includes: Language ID, Owner ID, Currency ID, Store ID.
public com.ibm.commerce.price.facade.datatypes.PriceListType getPriceList()
public void setPriceList(com.ibm.commerce.price.facade.datatypes.PriceListType priceList)
public com.ibm.commerce.price.facade.datatypes.PriceEntryType getPriceEntry()
public void setPriceEntry(com.ibm.commerce.price.facade.datatypes.PriceEntryType priceEntry)
protected void clearUniqueID()
protected void setPriceListUniqueId(java.lang.String uniqueId)
protected java.lang.String getActionString()