|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.order.CommerceIdentifierImpl atg.commerce.order.CommerceItemImpl
public class CommerceItemImpl
An implementation of a class which represents a CommerceItem. This class implements all the methods to manipulate a CommerceItem object.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected AuxiliaryData |
mAuxiliaryData
|
Constructor Summary | |
---|---|
CommerceItemImpl()
|
Method Summary | |
---|---|
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. |
Methods inherited from class atg.commerce.order.CommerceIdentifierImpl |
---|
getId, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface atg.commerce.order.CommerceIdentifier |
---|
getId |
Field Detail |
---|
public static final java.lang.String CLASS_VERSION
protected AuxiliaryData mAuxiliaryData
Constructor Detail |
---|
public CommerceItemImpl()
Method Detail |
---|
public java.lang.String getCommerceItemClassType()
getCommerceItemClassType
in interface CommerceItem
public void setCommerceItemClassType(java.lang.String pCommerceItemClassType)
setCommerceItemClassType
in interface CommerceItem
public java.lang.String getCatalogId()
getCatalogId
in interface CommerceItem
public void setCatalogId(java.lang.String pCatalogId)
setCatalogId
in interface CommerceItem
public java.lang.String getCatalogRefId()
getCatalogRefId
in interface CommerceItem
public void setCatalogRefId(java.lang.String pCatalogRefId)
setCatalogRefId
in interface CommerceItem
public java.lang.String getCatalogKey()
getCatalogKey
in interface CommerceItem
public void setCatalogKey(java.lang.String pCatalogKey)
setCatalogKey
in interface CommerceItem
public long getQuantity()
getQuantity
in interface CommerceItem
public void setQuantity(long pQuantity)
setQuantity
in interface CommerceItem
pQuantity
- the new value for the quantitypublic long getReturnedQuantity()
getReturnedQuantity
in interface CommerceItem
public ShippingGroupRelationshipContainerImpl getShippingGroupRelationshipContainer()
public int getState()
getState
in interface CommerceItem
public void setState(int pState)
setState
in interface CommerceItem
pState
- 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 CommerceItem
public void setStateDetail(java.lang.String pStateDetail)
setStateDetail
in interface CommerceItem
pStateDetail
- the stateDetail to setpublic ItemPriceInfo getPriceInfo()
getPriceInfo
in interface CommerceItem
public void setPriceInfo(ItemPriceInfo pPriceInfo)
setPriceInfo
in interface CommerceItem
pPriceInfo
- the PriceInfo object to setpublic MutableRepositoryItem getPriceInfoRepositoryItem()
public void setPriceInfoRepositoryItem(MutableRepositoryItem pPriceInfoRepositoryItem)
public AuxiliaryData getAuxiliaryData()
getAuxiliaryData
in interface CommerceItem
protected void createAuxiliaryData()
public java.util.List getShippingGroupRelationships()
getShippingGroupRelationships
in interface ShippingGroupRelationshipContainer
public void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship) throws DuplicateRelationshipException, InvalidParameterException
addShippingGroupRelationship
in interface ShippingGroupRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addShippingGroupRelationship
in interface ShippingGroupRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public ShippingGroupRelationship removeShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeShippingGroupRelationship
in interface ShippingGroupRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public void removeAllShippingGroupRelationships()
removeAllShippingGroupRelationships
in interface ShippingGroupRelationshipContainer
public ShippingGroupRelationship getShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getShippingGroupRelationship
in interface ShippingGroupRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public int getShippingGroupRelationshipCount()
getShippingGroupRelationshipCount
in interface ShippingGroupRelationshipContainer
public java.util.List getPaymentGroupRelationships()
getPaymentGroupRelationships
in interface PaymentGroupRelationshipContainer
public void addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship) throws DuplicateRelationshipException, InvalidParameterException
addPaymentGroupRelationship
in interface PaymentGroupRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public void addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addPaymentGroupRelationship
in interface PaymentGroupRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public PaymentGroupRelationship removePaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removePaymentGroupRelationship
in interface PaymentGroupRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public void removeAllPaymentGroupRelationships()
removeAllPaymentGroupRelationships
in interface PaymentGroupRelationshipContainer
public PaymentGroupRelationship getPaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getPaymentGroupRelationship
in interface PaymentGroupRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public int getPaymentGroupRelationshipCount()
getPaymentGroupRelationshipCount
in interface PaymentGroupRelationshipContainer
public java.util.List getCostCenterRelationships()
getCostCenterRelationships
in interface CostCenterRelationshipContainer
public void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship) throws DuplicateRelationshipException, InvalidParameterException
addCostCenterRelationship
in interface CostCenterRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addCostCenterRelationship
in interface CostCenterRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public CostCenterRelationship removeCostCenterRelationship(java.lang.String pCostCenterRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeCostCenterRelationship
in interface CostCenterRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public void removeAllCostCenterRelationships()
removeAllCostCenterRelationships
in interface CostCenterRelationshipContainer
public CostCenterRelationship getCostCenterRelationship(java.lang.String pCostCenterRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getCostCenterRelationship
in interface CostCenterRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public int getCostCenterRelationshipCount()
getCostCenterRelationshipCount
in interface CostCenterRelationshipContainer
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
o
- the object which changedarg
- the name of the property which changedpublic boolean getSaveAllProperties()
getSaveAllProperties
in interface ChangedProperties
public void setSaveAllProperties(boolean pSaveAllProperties)
setSaveAllProperties
in interface ChangedProperties
public boolean isChanged()
isChanged
in interface ChangedProperties
public void setChanged(boolean pChanged)
setChanged
in interface ChangedProperties
public java.util.Set getChangedProperties()
getChangedProperties
in interface ChangedProperties
public void addChangedProperty(java.lang.String pPropertyName)
addChangedProperty
in interface ChangedProperties
public void clearChangedProperties()
clearChangedProperties
in interface ChangedProperties
public MutableRepositoryItem getRepositoryItem()
getRepositoryItem
in interface ChangedProperties
public void setRepositoryItem(MutableRepositoryItem pRepositoryItem)
setRepositoryItem
in interface ChangedProperties
public java.lang.Object getPropertyValue(java.lang.String pPropertyName)
getPropertyValue
in interface ChangedProperties
public void setPropertyValue(java.lang.String pPropertyName, java.lang.Object pPropertyValue)
setPropertyValue
in interface ChangedProperties
pPropertyValue
- the value to set for the given property valuepublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |