public class CommerceItemImpl extends CommerceIdentifierImpl implements CommerceItem, ChangedProperties
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected AuxiliaryData |
mAuxiliaryData |
| Constructor and Description |
|---|
CommerceItemImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChangedProperty(java.lang.String pPropertyName)
Adds a changedProperty
|
void |
addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship)
Add the CostCenterRelationship to the container.
|
void |
addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship,
int pIndex)
Add the CostCenterRelationship to the container at the given index.
|
void |
addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship)
Add the PaymentGroupRelationship to the container.
|
void |
addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship,
int pIndex)
Add the PaymentGroupRelationship to the container at the given index.
|
void |
addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship)
Add the ShippingGroupRelationship to the container.
|
void |
addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship,
int pIndex)
Add the ShippingGroupRelationship to the container at the given index.
|
void |
clearChangedProperties()
Clears the changedProperties List
|
protected void |
createAuxiliaryData()
creates an AuxiliaryData object which is to be used with this CommerceItem.
|
AuxiliaryData |
getAuxiliaryData()
returns the AuxiliaryData.
|
java.lang.String |
getCatalogId()
Returns the catalogId
|
java.lang.String |
getCatalogKey()
Returns the catalogKey
|
java.lang.String |
getCatalogRefId()
Returns the catalogRefId
|
java.util.Set |
getChangedProperties()
Returns the changedProperties
|
java.lang.String |
getCommerceItemClassType()
Returns the commerceItemClassType
|
CostCenterRelationship |
getCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
Returns the CostCenterRelationship whose id is pCostCenterRelationshipId.
|
int |
getCostCenterRelationshipCount()
Returns the number of CostCenterRelationships in the container.
|
java.util.List |
getCostCenterRelationships()
Returns a List of CostCenterRelationships
|
PaymentGroupRelationship |
getPaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId)
Returns the PaymentGroupRelationship whose id is pPaymentGroupRelationshipId.
|
int |
getPaymentGroupRelationshipCount()
Returns the number of PaymentGroupRelationships in the container.
|
java.util.List |
getPaymentGroupRelationships()
Returns a List of PaymentGroupRelationships
|
ItemPriceInfo |
getPriceInfo()
returns the CommerceItemPriceInfo object.
|
MutableRepositoryItem |
getPriceInfoRepositoryItem()
Returns the priceInfoRepositoryItem
|
java.lang.Object |
getPropertyValue(java.lang.String pPropertyName)
Returns a property value
|
long |
getQuantity()
returns the number of CommerceItems which this CommerceItem object represents.
|
MutableRepositoryItem |
getRepositoryItem()
Returns the repositoryItem
|
long |
getReturnedQuantity()
Returns the returnedQuantity
|
boolean |
getSaveAllProperties()
Returns the saveAllProperties
|
ShippingGroupRelationship |
getShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
Returns the ShippingGroupRelationship whose id is pShippingGroupRelationshipId.
|
ShippingGroupRelationshipContainerImpl |
getShippingGroupRelationshipContainer()
returns the ShippingGroupRelationshipContainer
|
int |
getShippingGroupRelationshipCount()
Returns the number of ShippingGroupRelationships in the container.
|
java.util.List |
getShippingGroupRelationships()
Returns a List of ShippingGroupRelationships
|
int |
getState()
returns the CommerceItem state.
|
java.lang.String |
getStateAsString()
returns the CommerceItem state as a String.
|
java.lang.String |
getStateAsUserResource()
returns the CommerceItem state as a user resource
|
java.lang.String |
getStateDetail()
returns the CommerceItem state details.
|
boolean |
isChanged()
Returns the isChanged flag
|
void |
removeAllCostCenterRelationships()
Removes all the CostCenterRelationships
|
void |
removeAllPaymentGroupRelationships()
Removes all the PaymentGroupRelationships
|
void |
removeAllShippingGroupRelationships()
Removes all the ShippingGroupRelationships
|
CostCenterRelationship |
removeCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
Removes a CostCenterRelationship whose id is passed in.
|
PaymentGroupRelationship |
removePaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId)
Removes a PaymentGroupRelationship whose id is passed in.
|
ShippingGroupRelationship |
removeShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
Removes a ShippingGroupRelationship whose id is passed in.
|
void |
setCatalogId(java.lang.String pCatalogId)
Sets the catalogId
|
void |
setCatalogKey(java.lang.String pCatalogKey)
Sets the catalogKey
|
void |
setCatalogRefId(java.lang.String pCatalogRefId)
Sets the catalogRefId
|
void |
setChanged(boolean pChanged)
Marks this object as changed
|
void |
setCommerceItemClassType(java.lang.String pCommerceItemClassType)
Sets the commerceItemClassType
|
void |
setPriceInfo(ItemPriceInfo pPriceInfo)
sets the ItemPriceInfo object.
|
void |
setPriceInfoRepositoryItem(MutableRepositoryItem pPriceInfoRepositoryItem)
Sets the priceInfoRepositoryItem
|
void |
setPropertyValue(java.lang.String pPropertyName,
java.lang.Object pPropertyValue)
Sets a property value
|
void |
setQuantity(long pQuantity)
sets the number of CommerceItems which this CommerceItem object represents.
|
void |
setRepositoryItem(MutableRepositoryItem pRepositoryItem)
Sets the repositoryItem
|
void |
setSaveAllProperties(boolean pSaveAllProperties)
Sets the saveAllProperties
|
void |
setState(int pState)
sets the CommerceItem state.
|
void |
setStateAsString(java.lang.String pState)
sets the CommerceItem state using a String
|
void |
setStateDetail(java.lang.String pStateDetail)
sets the CommerceItem state details.
|
java.lang.String |
toString()
Method that renders the general information in a readable string format
|
void |
update(java.util.Observable o,
java.lang.Object arg)
This method is called whenever a property in a contained object changes
and the containing object needs to be notified.
|
getId, setIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdpublic static final java.lang.String CLASS_VERSION
protected AuxiliaryData mAuxiliaryData
public java.lang.String getCommerceItemClassType()
getCommerceItemClassType in interface CommerceItempublic void setCommerceItemClassType(java.lang.String pCommerceItemClassType)
setCommerceItemClassType in interface CommerceItempublic java.lang.String getCatalogId()
getCatalogId in interface CommerceItempublic void setCatalogId(java.lang.String pCatalogId)
setCatalogId in interface CommerceItempublic java.lang.String getCatalogRefId()
getCatalogRefId in interface CommerceItempublic void setCatalogRefId(java.lang.String pCatalogRefId)
setCatalogRefId in interface CommerceItempublic java.lang.String getCatalogKey()
getCatalogKey in interface CommerceItempublic void setCatalogKey(java.lang.String pCatalogKey)
setCatalogKey in interface CommerceItempublic long getQuantity()
getQuantity in interface CommerceItempublic void setQuantity(long pQuantity)
setQuantity in interface CommerceItempQuantity - the new value for the quantitypublic long getReturnedQuantity()
getReturnedQuantity in interface CommerceItempublic ShippingGroupRelationshipContainerImpl getShippingGroupRelationshipContainer()
public int getState()
getState in interface CommerceItempublic void setState(int pState)
setState in interface CommerceItempState - the state to setpublic java.lang.String getStateAsString()
public void setStateAsString(java.lang.String pState)
pState - the state to setpublic java.lang.String getStateAsUserResource()
public java.lang.String getStateDetail()
getStateDetail in interface CommerceItempublic void setStateDetail(java.lang.String pStateDetail)
setStateDetail in interface CommerceItempStateDetail - the stateDetail to setpublic ItemPriceInfo getPriceInfo()
getPriceInfo in interface CommerceItempublic void setPriceInfo(ItemPriceInfo pPriceInfo)
setPriceInfo in interface CommerceItempPriceInfo - the PriceInfo object to setpublic MutableRepositoryItem getPriceInfoRepositoryItem()
public void setPriceInfoRepositoryItem(MutableRepositoryItem pPriceInfoRepositoryItem)
public AuxiliaryData getAuxiliaryData()
getAuxiliaryData in interface CommerceItemprotected void createAuxiliaryData()
public java.util.List getShippingGroupRelationships()
getShippingGroupRelationships in interface ShippingGroupRelationshipContainerpublic void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship) throws DuplicateRelationshipException, InvalidParameterException
addShippingGroupRelationship in interface ShippingGroupRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addShippingGroupRelationship in interface ShippingGroupRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic ShippingGroupRelationship removeShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeShippingGroupRelationship in interface ShippingGroupRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic void removeAllShippingGroupRelationships()
removeAllShippingGroupRelationships in interface ShippingGroupRelationshipContainerpublic ShippingGroupRelationship getShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getShippingGroupRelationship in interface ShippingGroupRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic int getShippingGroupRelationshipCount()
getShippingGroupRelationshipCount in interface ShippingGroupRelationshipContainerpublic java.util.List getPaymentGroupRelationships()
getPaymentGroupRelationships in interface PaymentGroupRelationshipContainerpublic void addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship) throws DuplicateRelationshipException, InvalidParameterException
addPaymentGroupRelationship in interface PaymentGroupRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic void addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addPaymentGroupRelationship in interface PaymentGroupRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic PaymentGroupRelationship removePaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removePaymentGroupRelationship in interface PaymentGroupRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic void removeAllPaymentGroupRelationships()
removeAllPaymentGroupRelationships in interface PaymentGroupRelationshipContainerpublic PaymentGroupRelationship getPaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getPaymentGroupRelationship in interface PaymentGroupRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic int getPaymentGroupRelationshipCount()
getPaymentGroupRelationshipCount in interface PaymentGroupRelationshipContainerpublic java.util.List getCostCenterRelationships()
getCostCenterRelationships in interface CostCenterRelationshipContainerpublic void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship) throws DuplicateRelationshipException, InvalidParameterException
addCostCenterRelationship in interface CostCenterRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addCostCenterRelationship in interface CostCenterRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic CostCenterRelationship removeCostCenterRelationship(java.lang.String pCostCenterRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeCostCenterRelationship in interface CostCenterRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic void removeAllCostCenterRelationships()
removeAllCostCenterRelationships in interface CostCenterRelationshipContainerpublic CostCenterRelationship getCostCenterRelationship(java.lang.String pCostCenterRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getCostCenterRelationship in interface CostCenterRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic int getCostCenterRelationshipCount()
getCostCenterRelationshipCount in interface CostCenterRelationshipContainerpublic void update(java.util.Observable o,
java.lang.Object arg)
update in interface java.util.Observero - the object which changedarg - the name of the property which changedpublic boolean getSaveAllProperties()
getSaveAllProperties in interface ChangedPropertiespublic void setSaveAllProperties(boolean pSaveAllProperties)
setSaveAllProperties in interface ChangedPropertiespublic boolean isChanged()
isChanged in interface ChangedPropertiespublic void setChanged(boolean pChanged)
setChanged in interface ChangedPropertiespublic java.util.Set getChangedProperties()
getChangedProperties in interface ChangedPropertiespublic void addChangedProperty(java.lang.String pPropertyName)
addChangedProperty in interface ChangedPropertiespublic void clearChangedProperties()
clearChangedProperties in interface ChangedPropertiespublic MutableRepositoryItem getRepositoryItem()
getRepositoryItem in interface ChangedPropertiespublic void setRepositoryItem(MutableRepositoryItem pRepositoryItem)
setRepositoryItem in interface ChangedPropertiespublic java.lang.Object getPropertyValue(java.lang.String pPropertyName)
getPropertyValue in interface ChangedPropertiespublic void setPropertyValue(java.lang.String pPropertyName,
java.lang.Object pPropertyValue)
setPropertyValue in interface ChangedPropertiespPropertyValue - the value to set for the given property valuepublic java.lang.String toString()
toString in class java.lang.Object