public class OrderImpl extends CommerceIdentifierImpl implements Order, ChangedProperties
Order,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected CommerceItemContainerImpl |
mCommerceItemContainer |
protected CostCenterContainerImpl |
mCostCenterContainer |
protected CostCenterRelationshipContainerImpl |
mCostCenterRelationshipContainer |
protected boolean |
mInitialized |
protected boolean |
mInvalidated |
protected PaymentGroupContainerImpl |
mPaymentGroupContainer |
protected PaymentGroupRelationshipContainerImpl |
mPaymentGroupRelationshipContainer |
protected RelationshipContainerImpl |
mRelationshipContainer |
protected ShippingGroupContainerImpl |
mShippingGroupContainer |
| Constructor and Description |
|---|
OrderImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChangedProperty(java.lang.String pPropertyName)
Adds a changedProperty
|
void |
addCommerceItem(CommerceItem pCommerceItem)
Add the CommerceItem to the container.
|
void |
addCommerceItem(CommerceItem pCommerceItem,
int pIndex)
Add the CommerceItem to the container at the given index.
|
void |
addCostCenter(CostCenter pCostCenter)
Add the CostCenter to the container.
|
void |
addCostCenter(CostCenter pCostCenter,
int pIndex)
Add the CostCenter to the container at the given index.
|
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 |
addOrderIdToRelatedOrders(java.lang.String pOrderId)
Adds an order id to the relatedOrders list
|
void |
addPaymentGroup(PaymentGroup pPaymentGroup)
Add the PaymentGroup to the container.
|
void |
addPaymentGroup(PaymentGroup pPaymentGroup,
int pIndex)
Add the PaymentGroup 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 |
addRelationship(Relationship pRelationship)
Add the Relationship to the container.
|
void |
addRelationship(Relationship pRelationship,
int pIndex)
Add the Relationship to the container at the given index.
|
void |
addShippingGroup(ShippingGroup pShippingGroup)
Add the ShippingGroup to the container.
|
void |
addShippingGroup(ShippingGroup pShippingGroup,
int pIndex)
Add the ShippingGroup to the container at the given index.
|
void |
clearChangedProperties()
Clears the changedProperties List
|
protected void |
ensureContainers()
Internal method to refresh the Commerce object list
|
boolean |
equals(java.lang.Object pOrder)
Returns true if pOrder is the same as this Order.
|
java.lang.String |
getAgentId()
Returns the agentId
|
java.util.List |
getApprovalSystemMessages()
Returns property approvalSystemMessages
|
java.util.List |
getApproverIds()
Returns property approverIds
|
java.util.List |
getApproverMessages()
Returns property approverMessages
|
java.util.List |
getAuthorizedApproverIds()
Returns property authorizedApproverIds
|
java.util.Set |
getChangedProperties()
Returns the changedProperties
|
CommerceItem |
getCommerceItem(java.lang.String pCommerceItemId)
Returns the CommerceItem whose id is pCommerceItemId.
|
int |
getCommerceItemCount()
Returns the number of CommerceItems in the container.
|
java.util.List |
getCommerceItems()
Returns a List of CommerceItems
|
java.util.List |
getCommerceItemsByCatalogRefId(java.lang.String pCatalogRefId)
Returns a List of CommerceItems whose catalogRefId is pCatalogRefId.
|
java.util.Date |
getCompletedDate()
Returns the completedDate
|
long |
getCompletedTime()
Returns property completedTime
|
CostCenter |
getCostCenter(java.lang.String pCostCenterId)
Returns the CostCenter whose id is pCostCenterId.
|
int |
getCostCenterCount()
Returns the number of CostCenters in the container.
|
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
|
java.util.List |
getCostCenters()
Returns a List of CostCenters
|
java.lang.String |
getCreatedByOrderId()
Returns property createdByOrderId
|
java.util.Date |
getCreationDate()
Returns the creationDate
|
java.lang.String |
getCreationSiteId()
Returns the creationSiteId
|
long |
getCreationTime()
Returns property creationTime
|
java.lang.String |
getDescription()
Returns the description
|
java.util.Date |
getLastModifiedDate()
Returns the lastModifiedDate
|
long |
getLastModifiedTime()
Returns property lastModifiedTime
|
java.util.List |
getManualAdjustments()
Returns a list of manualAdjustment repository items
for this order.
|
java.lang.String |
getOrderClassType()
Returns the orderClassType
|
java.lang.String |
getOriginOfOrder()
Returns the originOfOrder
|
PaymentGroup |
getPaymentGroup(java.lang.String pPaymentGroupId)
Returns the PaymentGroup whose id is pPaymentGroupId.
|
int |
getPaymentGroupCount()
Returns the number of PaymentGroups in the container.
|
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
|
java.util.List |
getPaymentGroups()
Returns a List of PaymentGroups
|
OrderPriceInfo |
getPriceInfo()
Returns the OrderPriceInfo for the order
|
MutableRepositoryItem |
getPriceInfoRepositoryItem()
Returns the priceInfoRepositoryItem
|
java.lang.String |
getProfileId()
Returns the RepositoryId of the profile which this Order belongs to.
|
java.lang.Object |
getPropertyValue(java.lang.String pPropertyName)
Returns a property value
|
java.util.List |
getRelatedOrders()
Returns property relatedOrders
|
Relationship |
getRelationship(java.lang.String pRelationshipId)
Returns the Relationship whose id is pRelationshipId.
|
int |
getRelationshipCount()
Returns the number of Relationships in the container.
|
java.util.List |
getRelationships()
Returns a List of Relationships
|
MutableRepositoryItem |
getRepositoryItem()
Returns the repositoryItem
|
java.lang.String |
getSalesChannel()
Returns the salesChannel
|
boolean |
getSaveAllProperties()
Returns the saveAllProperties
|
ShippingGroup |
getShippingGroup(java.lang.String pShippingGroupId)
Returns the ShippingGroup whose id is pShippingGroupId.
|
int |
getShippingGroupCount()
Returns the number of ShippingGroups in the container.
|
java.util.List |
getShippingGroups()
Returns a List of ShippingGroups
|
java.lang.String |
getSiteId()
Returns the siteId
|
java.util.Map |
getSpecialInstructions()
Returns the specialInstructions
|
int |
getState()
returns the Order state.
|
java.lang.String |
getStateAsString() |
java.lang.String |
getStateAsUserResource()
returns the Order state as a user resource
|
java.lang.String |
getStateDetail()
returns the Order state details.
|
java.lang.String |
getStateDetailAsUserResource()
returns the Order state detail as a user resource
|
java.util.Date |
getSubmittedDate()
Returns the submittedDate
|
long |
getSubmittedTime()
Returns property submittedTime
|
TaxPriceInfo |
getTaxPriceInfo()
Returns the taxPriceInfo
|
MutableRepositoryItem |
getTaxPriceInfoRepositoryItem()
Returns the taxPriceInfoRepositoryItem
|
long |
getTotalCommerceItemCount()
Returns the number of individual CommerceItems in the container.
|
int |
getVersion()
Returns property version
|
int |
hashCode()
Override the default hashCode method to return the hashCode of the id.
|
void |
invalidateOrder()
Invalidates the order so on the next access the order will be refreshed from the
item descriptors.
|
boolean |
isChanged()
Returns the isChanged flag
|
boolean |
isExplicitlySaved()
Returns true if the order was explicitly marked for saving.
|
boolean |
isTransient()
Returns the transient property
|
protected void |
preEnsureContainers()
Method which is called by ensureContainers to allow subclasses to do any
initialization when the order is reconstructed.
|
void |
removeAllCommerceItems()
Removes all the CommerceItems
|
void |
removeAllCostCenterRelationships()
Removes all the CostCenterRelationships
|
void |
removeAllCostCenters()
Removes all the CostCenters
|
void |
removeAllPaymentGroupRelationships()
Removes all the PaymentGroupRelationships
|
void |
removeAllPaymentGroups()
Removes all the PaymentGroups
|
void |
removeAllRelationships()
Removes all the Relationships
|
void |
removeAllShippingGroups()
Removes all the ShippingGroups
|
CommerceItem |
removeCommerceItem(java.lang.String pCommerceItemId)
Removes a CommerceItem whose id is passed in.
|
CostCenter |
removeCostCenter(java.lang.String pCostCenterId)
Removes a CostCenter whose id is passed in.
|
CostCenterRelationship |
removeCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
Removes a CostCenterRelationship whose id is passed in.
|
PaymentGroup |
removePaymentGroup(java.lang.String pPaymentGroupId)
Removes a PaymentGroup whose id is passed in.
|
PaymentGroupRelationship |
removePaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId)
Removes a PaymentGroupRelationship whose id is passed in.
|
Relationship |
removeRelationship(java.lang.String pRelationshipId)
Removes a Relationship whose id is passed in.
|
ShippingGroup |
removeShippingGroup(java.lang.String pShippingGroupId)
Removes a ShippingGroup whose id is passed in.
|
void |
repositionCommerceItem(CommerceItem pItem,
int pNewIndex)
Changes the position of the given commerce item within the order.
|
void |
setAgentId(java.lang.String pAgentId)
Sets the agentId
|
void |
setApprovalSystemMessages(java.util.List pApprovalSystemMessages)
Sets property approvalSystemMessages
|
void |
setApproverIds(java.util.List pApproverIds)
Sets property approverIds
|
void |
setApproverMessages(java.util.List pApproverMessages)
Sets property approverMessages
|
void |
setAuthorizedApproverIds(java.util.List pAuthorizedApproverIds)
Sets property authorizedApproverIds
|
void |
setChanged(boolean pChanged)
Marks this object as changed
|
void |
setCompletedDate(java.util.Date pCompletedDate)
Sets the completedDate
|
void |
setCompletedTime(long pCompletedTime)
Sets property completedTime
|
void |
setCreatedByOrderId(java.lang.String pCreatedByOrderId)
Sets property createdByOrderId
|
void |
setCreationDate(java.util.Date pCreationDate)
Sets the creationDate
|
void |
setCreationSiteId(java.lang.String pCreationSiteId)
Sets the creationSiteId
|
void |
setCreationTime(long pCreationTime)
Sets property creationTime
|
void |
setDescription(java.lang.String pDescription)
Sets the description
|
void |
setExplicitlySaved(boolean pExplicitlySaved)
Marks the order as one that has been explicitly saved.
|
void |
setLastModifiedDate(java.util.Date pLastModifiedDate)
Sets the lastModifiedDate
|
void |
setLastModifiedTime(long pLastModifiedTime)
Sets property lastModifiedTime
|
void |
setManualAdjustments(java.util.List pManualAdjustments)
Sets the list of manual adjustment repository items
|
void |
setOrderClassType(java.lang.String pOrderClassType)
Sets the orderClassType
|
void |
setOriginOfOrder(java.lang.String pOriginOfOrder)
Sets the originOfOrder
|
void |
setPriceInfo(OrderPriceInfo pPriceInfo)
Sets the OrderPriceInfo for the order
|
void |
setPriceInfoRepositoryItem(MutableRepositoryItem pPriceInfoRepositoryItem)
Sets the priceInfoRepositoryItem
|
void |
setProfileId(java.lang.String pId)
Sets the RepositoryId of the profile which this Order belongs to.
|
void |
setPropertyValue(java.lang.String pPropertyName,
java.lang.Object pPropertyValue)
Sets a property value
|
void |
setRepositoryItem(MutableRepositoryItem pRepositoryItem)
Sets the repositoryItem and calls updateVersion()
|
void |
setSalesChannel(java.lang.String pSalesChannel)
Sets the salesChannel
|
void |
setSaveAllProperties(boolean pSaveAllProperties)
Sets the saveAllProperties
|
void |
setSiteId(java.lang.String pSiteId)
Sets the siteId
|
void |
setSpecialInstructions(java.util.Map pSpecialInstructions)
Sets the specialInstructions
|
void |
setState(int pState)
sets the Order state.
|
void |
setStateAsString(java.lang.String pState)
sets the Order state using a string.
|
void |
setStateDetail(java.lang.String pStateDetail)
sets the Order state details.
|
void |
setSubmittedDate(java.util.Date pSubmittedDate)
Sets the submittedDate
|
void |
setSubmittedTime(long pSubmittedTime)
Sets property submittedTime
|
void |
setTaxPriceInfo(TaxPriceInfo pTaxPriceInfo)
Sets the taxPriceInfo
|
void |
setTaxPriceInfoRepositoryItem(MutableRepositoryItem pTaxPriceInfoRepositoryItem)
Sets the taxPriceInfoRepositoryItem
|
void |
setTransient(boolean pTransient)
Deprecated.
this method no longer does anything
|
protected void |
setVersion(int pVersion)
Sets property version
|
java.lang.String |
toString()
Method that renders the general order 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.
|
void |
updateVersion()
Method for updating the local copy of the version stored in this class
|
getId, setIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIdpublic static java.lang.String CLASS_VERSION
protected transient CommerceItemContainerImpl mCommerceItemContainer
protected transient ShippingGroupContainerImpl mShippingGroupContainer
protected transient PaymentGroupContainerImpl mPaymentGroupContainer
protected transient RelationshipContainerImpl mRelationshipContainer
protected transient PaymentGroupRelationshipContainerImpl mPaymentGroupRelationshipContainer
protected transient CostCenterContainerImpl mCostCenterContainer
protected transient CostCenterRelationshipContainerImpl mCostCenterRelationshipContainer
protected transient volatile boolean mInitialized
protected transient boolean mInvalidated
public int hashCode()
hashCode in class java.lang.Objectpublic int getVersion()
protected void setVersion(int pVersion)
pVersion - the value to set for property versionpublic void updateVersion()
public java.lang.String getOrderClassType()
getOrderClassType in interface Orderpublic void setOrderClassType(java.lang.String pOrderClassType)
setOrderClassType in interface Orderpublic java.lang.String getProfileId()
getProfileId in interface Orderpublic void setProfileId(java.lang.String pId)
setProfileId in interface Orderpublic java.lang.String getDescription()
getDescription in interface Orderpublic void setDescription(java.lang.String pDescription)
setDescription in interface Orderpublic int getState()
public void setState(int pState)
public java.lang.String getStateAsString()
public void setStateAsString(java.lang.String pState)
pState - the state to setpublic java.lang.String getStateAsUserResource()
public java.lang.String getStateDetailAsUserResource()
public java.lang.String getStateDetail()
getStateDetail in interface Orderpublic void setStateDetail(java.lang.String pStateDetail)
setStateDetail in interface OrderpStateDetail - the stateDetail to setpublic OrderPriceInfo getPriceInfo()
getPriceInfo in interface Orderpublic void setPriceInfo(OrderPriceInfo pPriceInfo)
setPriceInfo in interface Orderpublic MutableRepositoryItem getPriceInfoRepositoryItem()
public void setPriceInfoRepositoryItem(MutableRepositoryItem pPriceInfoRepositoryItem)
public TaxPriceInfo getTaxPriceInfo()
getTaxPriceInfo in interface Orderpublic void setTaxPriceInfo(TaxPriceInfo pTaxPriceInfo)
setTaxPriceInfo in interface Orderpublic MutableRepositoryItem getTaxPriceInfoRepositoryItem()
public void setTaxPriceInfoRepositoryItem(MutableRepositoryItem pTaxPriceInfoRepositoryItem)
public java.lang.String getCreatedByOrderId()
getCreatedByOrderId in interface Orderpublic void setCreatedByOrderId(java.lang.String pCreatedByOrderId)
setCreatedByOrderId in interface OrderpCreatedByOrderId - the value to set for property createdByOrderIdpublic java.util.List getRelatedOrders()
getRelatedOrders in interface Orderpublic void addOrderIdToRelatedOrders(java.lang.String pOrderId)
addOrderIdToRelatedOrders in interface OrderpOrderId - the order id to add to the relatedOrders listpublic java.util.Date getSubmittedDate()
getSubmittedDate in interface Orderpublic void setSubmittedDate(java.util.Date pSubmittedDate)
public long getSubmittedTime()
getSubmittedTime in interface Orderpublic void setSubmittedTime(long pSubmittedTime)
setSubmittedTime in interface OrderpSubmittedTime - the value to set for property submittedTimepublic java.lang.String getOriginOfOrder()
getOriginOfOrder in interface Orderpublic void setOriginOfOrder(java.lang.String pOriginOfOrder)
setOriginOfOrder in interface Orderpublic void setExplicitlySaved(boolean pExplicitlySaved)
setExplicitlySaved in interface OrderpExplicitlySaved - is true if this order was explicitly saved, false otherwise.public boolean isExplicitlySaved()
isExplicitlySaved in interface Orderpublic java.util.Date getCreationDate()
getCreationDate in interface Orderpublic void setCreationDate(java.util.Date pCreationDate)
public long getCreationTime()
getCreationTime in interface Orderpublic void setCreationTime(long pCreationTime)
setCreationTime in interface OrderpCreationTime - the value to set for property creationTimepublic java.util.Date getLastModifiedDate()
getLastModifiedDate in interface Orderpublic void setLastModifiedDate(java.util.Date pLastModifiedDate)
public long getLastModifiedTime()
getLastModifiedTime in interface Orderpublic void setLastModifiedTime(long pLastModifiedTime)
setLastModifiedTime in interface OrderpLastModifiedTime - the value to set for property lastModifiedTimepublic java.util.Date getCompletedDate()
getCompletedDate in interface Orderpublic void setCompletedDate(java.util.Date pCompletedDate)
public long getCompletedTime()
getCompletedTime in interface Orderpublic void setCompletedTime(long pCompletedTime)
setCompletedTime in interface OrderpCompletedTime - the value to set for property completedTimepublic boolean isTransient()
isTransient in interface Orderpublic void setTransient(boolean pTransient)
setTransient in interface Orderpublic java.util.Map getSpecialInstructions()
getSpecialInstructions in interface Orderpublic void setSpecialInstructions(java.util.Map pSpecialInstructions)
public java.util.List getManualAdjustments()
getManualAdjustments in interface Orderpublic void setManualAdjustments(java.util.List pManualAdjustments)
setManualAdjustments in interface Orderpublic java.lang.String getAgentId()
getAgentId in interface Orderpublic void setAgentId(java.lang.String pAgentId)
setAgentId in interface Orderpublic java.lang.String getSalesChannel()
getSalesChannel in interface Orderpublic void setSalesChannel(java.lang.String pSalesChannel)
setSalesChannel in interface OrderpSalesChannel - public java.lang.String getCreationSiteId()
getCreationSiteId in interface Orderpublic void setCreationSiteId(java.lang.String pCreationSiteId)
setCreationSiteId in interface OrderpCreationSiteId - the value to set for property createdSiteIdpublic java.lang.String getSiteId()
public void setSiteId(java.lang.String pSiteId)
public java.util.List getApproverIds()
getApproverIds in interface Orderpublic void setApproverIds(java.util.List pApproverIds)
setApproverIds in interface OrderpApproverIds - the value to set for property approverIdspublic java.util.List getAuthorizedApproverIds()
getAuthorizedApproverIds in interface Orderpublic void setAuthorizedApproverIds(java.util.List pAuthorizedApproverIds)
setAuthorizedApproverIds in interface OrderpAuthorizedApproverIds - the value to set for property authorizedApproverIdspublic java.util.List getApprovalSystemMessages()
getApprovalSystemMessages in interface Orderpublic void setApprovalSystemMessages(java.util.List pApprovalSystemMessages)
setApprovalSystemMessages in interface OrderpApprovalSystemMessages - the value to set for property approvalSystemMessagespublic java.util.List getApproverMessages()
getApproverMessages in interface Orderpublic void setApproverMessages(java.util.List pApproverMessages)
setApproverMessages in interface OrderpApproverMessages - the value to set for property approverMessagespublic java.util.List getCommerceItems()
getCommerceItems in interface CommerceItemContainerpublic void addCommerceItem(CommerceItem pCommerceItem) throws DuplicateCommerceItemException, InvalidParameterException
addCommerceItem in interface CommerceItemContainerDuplicateCommerceItemExceptionInvalidParameterExceptionpublic void addCommerceItem(CommerceItem pCommerceItem, int pIndex) throws DuplicateCommerceItemException, InvalidParameterException
addCommerceItem in interface CommerceItemContainerDuplicateCommerceItemExceptionInvalidParameterExceptionpublic CommerceItem removeCommerceItem(java.lang.String pCommerceItemId) throws CommerceItemNotFoundException, InvalidParameterException
removeCommerceItem in interface CommerceItemContainerCommerceItemNotFoundExceptionInvalidParameterExceptionpublic void removeAllCommerceItems()
removeAllCommerceItems in interface CommerceItemContainerpublic void repositionCommerceItem(CommerceItem pItem, int pNewIndex) throws CommerceItemNotFoundException, InvalidParameterException, DuplicateCommerceItemException
pItem - CommerceItem already in the orderpNewIndex - int new index to move the item to.CommerceItemNotFoundException - if pItem is not in the orderInvalidParameterExceptionDuplicateCommerceItemExceptionpublic CommerceItem getCommerceItem(java.lang.String pCommerceItemId) throws CommerceItemNotFoundException, InvalidParameterException
getCommerceItem in interface CommerceItemContainerCommerceItemNotFoundExceptionInvalidParameterExceptionpublic java.util.List getCommerceItemsByCatalogRefId(java.lang.String pCatalogRefId)
throws CommerceItemNotFoundException,
InvalidParameterException
getCommerceItemsByCatalogRefId in interface CommerceItemContainerCommerceItemNotFoundExceptionInvalidParameterExceptionpublic int getCommerceItemCount()
getCommerceItemCount in interface CommerceItemContainerpublic long getTotalCommerceItemCount()
getTotalCommerceItemCount in interface CommerceItemContainerpublic java.util.List getShippingGroups()
getShippingGroups in interface ShippingGroupContainerpublic void addShippingGroup(ShippingGroup pShippingGroup) throws DuplicateShippingGroupException, InvalidParameterException
addShippingGroup in interface ShippingGroupContainerDuplicateShippingGroupExceptionInvalidParameterExceptionpublic void addShippingGroup(ShippingGroup pShippingGroup, int pIndex) throws DuplicateShippingGroupException, InvalidParameterException
addShippingGroup in interface ShippingGroupContainerDuplicateShippingGroupExceptionInvalidParameterExceptionpublic ShippingGroup removeShippingGroup(java.lang.String pShippingGroupId) throws ShippingGroupNotFoundException, InvalidParameterException
removeShippingGroup in interface ShippingGroupContainerShippingGroupNotFoundExceptionInvalidParameterExceptionpublic void removeAllShippingGroups()
removeAllShippingGroups in interface ShippingGroupContainerpublic ShippingGroup getShippingGroup(java.lang.String pShippingGroupId) throws ShippingGroupNotFoundException, InvalidParameterException
getShippingGroup in interface ShippingGroupContainerShippingGroupNotFoundExceptionInvalidParameterExceptionpublic int getShippingGroupCount()
getShippingGroupCount in interface ShippingGroupContainerpublic java.util.List getPaymentGroups()
getPaymentGroups in interface PaymentGroupContainerpublic void addPaymentGroup(PaymentGroup pPaymentGroup) throws DuplicatePaymentGroupException, InvalidParameterException
addPaymentGroup in interface PaymentGroupContainerDuplicatePaymentGroupExceptionInvalidParameterExceptionpublic void addPaymentGroup(PaymentGroup pPaymentGroup, int pIndex) throws DuplicatePaymentGroupException, InvalidParameterException
addPaymentGroup in interface PaymentGroupContainerDuplicatePaymentGroupExceptionInvalidParameterExceptionpublic PaymentGroup removePaymentGroup(java.lang.String pPaymentGroupId) throws PaymentGroupNotFoundException, InvalidParameterException
removePaymentGroup in interface PaymentGroupContainerPaymentGroupNotFoundExceptionInvalidParameterExceptionpublic void removeAllPaymentGroups()
removeAllPaymentGroups in interface PaymentGroupContainerpublic PaymentGroup getPaymentGroup(java.lang.String pPaymentGroupId) throws PaymentGroupNotFoundException, InvalidParameterException
getPaymentGroup in interface PaymentGroupContainerPaymentGroupNotFoundExceptionInvalidParameterExceptionpublic int getPaymentGroupCount()
getPaymentGroupCount in interface PaymentGroupContainerpublic java.util.List getCostCenters()
getCostCenters in interface CostCenterContainerpublic void addCostCenter(CostCenter pCostCenter) throws DuplicateCostCenterException, InvalidParameterException
addCostCenter in interface CostCenterContainerDuplicateCostCenterExceptionInvalidParameterExceptionpublic void addCostCenter(CostCenter pCostCenter, int pIndex) throws DuplicateCostCenterException, InvalidParameterException
addCostCenter in interface CostCenterContainerDuplicateCostCenterExceptionInvalidParameterExceptionpublic CostCenter removeCostCenter(java.lang.String pCostCenterId) throws CostCenterNotFoundException, InvalidParameterException
removeCostCenter in interface CostCenterContainerCostCenterNotFoundExceptionInvalidParameterExceptionpublic void removeAllCostCenters()
removeAllCostCenters in interface CostCenterContainerpublic CostCenter getCostCenter(java.lang.String pCostCenterId) throws CostCenterNotFoundException, InvalidParameterException
getCostCenter in interface CostCenterContainerCostCenterNotFoundExceptionInvalidParameterExceptionpublic int getCostCenterCount()
getCostCenterCount in interface CostCenterContainerpublic java.util.List getRelationships()
getRelationships in interface RelationshipContainerpublic void addRelationship(Relationship pRelationship) throws DuplicateRelationshipException, InvalidParameterException
addRelationship in interface RelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic void addRelationship(Relationship pRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addRelationship in interface RelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic Relationship removeRelationship(java.lang.String pRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeRelationship in interface RelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic void removeAllRelationships()
removeAllRelationships in interface RelationshipContainerpublic Relationship getRelationship(java.lang.String pRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getRelationship in interface RelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic int getRelationshipCount()
getRelationshipCount in interface RelationshipContainerpublic 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 CostCenterRelationshipContainerprotected void preEnsureContainers()
protected void ensureContainers()
public void invalidateOrder()
public 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 ChangedPropertiesisChanged in interface Orderpublic 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 boolean equals(java.lang.Object pOrder)
public java.lang.String toString()
toString in class java.lang.Object