public class CostCenterImpl extends CommerceIdentifierImpl implements CostCenter, ChangedProperties
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
| Constructor and Description |
|---|
CostCenterImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChangedProperty(java.lang.String pPropertyName)
Adds a changedProperty
|
void |
addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship)
Add the CommerceItemRelationship to the container.
|
void |
addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship,
int pIndex)
Add the CommerceItemRelationship to the container at the given index.
|
void |
addOrderRelationship(OrderRelationship pOrderRelationship)
Add the OrderRelationship to the container.
|
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
|
double |
getAmount()
returns the amount associated with this PaymentGroup.
|
java.util.Set |
getChangedProperties()
Returns the changedProperties
|
CommerceItemRelationship |
getCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId)
Returns the CommerceItemRelationship whose id is pCommerceItemRelationshipId.
|
int |
getCommerceItemRelationshipCount()
Returns the number of CommerceItemRelationships in the container.
|
java.util.List |
getCommerceItemRelationships()
Returns a List of CommerceItemRelationships
|
java.lang.String |
getCostCenterClassType()
Returns the CostCenterClassType
|
java.lang.String |
getDescription()
Returns the description
|
java.lang.String |
getIdentifier()
Returns the identifier
|
OrderRelationship |
getOrderRelationship()
Returns the OrderRelationship.
|
int |
getOrderRelationshipCount()
Returns the number of OrderRelationships in the container.
|
java.lang.Object |
getPropertyValue(java.lang.String pPropertyName)
Returns a property value, if the property is not defined in the underlying item-descriptor
null is returned.
|
MutableRepositoryItem |
getRepositoryItem()
Returns the repositoryItem
|
boolean |
getSaveAllProperties()
Returns the saveAllProperties
|
ShippingGroupRelationship |
getShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
Returns the ShippingGroupRelationship whose id is pShippingGroupRelationshipId.
|
int |
getShippingGroupRelationshipCount()
Returns the number of ShippingGroupRelationships in the container.
|
java.util.List |
getShippingGroupRelationships()
Returns a List of ShippingGroupRelationships
|
boolean |
isChanged()
Returns the isChanged flag
|
void |
removeAllCommerceItemRelationships()
Removes all the CommerceItemRelationships
|
void |
removeAllShippingGroupRelationships()
Removes all the ShippingGroupRelationships.
|
CommerceItemRelationship |
removeCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId)
Removes a CommerceItemRelationship whose id is passed in.
|
OrderRelationship |
removeOrderRelationship()
Removes a OrderRelationship.
|
ShippingGroupRelationship |
removeShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
Removes a ShippingGroupRelationship whose id is passed in.
|
void |
setAmount(double pAmount)
sets the amount associated with this PaymentGroup.
|
void |
setChanged(boolean pChanged)
Marks this object as changed
|
void |
setCostCenterClassType(java.lang.String pCostCenterClassType)
Sets the CostCenterClassType
|
void |
setDescription(java.lang.String pDescription)
Sets the description
|
void |
setIdentifier(java.lang.String pIdentifier)
Sets the identifier
|
void |
setPropertyValue(java.lang.String pPropertyName,
java.lang.Object pPropertyValue)
Sets a property value
|
void |
setRepositoryItem(MutableRepositoryItem pRepositoryItem)
Sets the repositoryItem
|
void |
setSaveAllProperties(boolean pSaveAllProperties)
Sets the saveAllProperties
|
java.lang.String |
toString()
returns a string representation of this object
|
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 java.lang.String getCostCenterClassType()
getCostCenterClassType in interface CostCenterpublic void setCostCenterClassType(java.lang.String pCostCenterClassType)
setCostCenterClassType in interface CostCenterpublic java.lang.String getIdentifier()
getIdentifier in interface CostCenterpublic void setIdentifier(java.lang.String pIdentifier)
setIdentifier in interface CostCenterpublic java.lang.String getDescription()
getDescription in interface CostCenterpublic void setDescription(java.lang.String pDescription)
setDescription in interface CostCenterpublic double getAmount()
getAmount in interface CostCenterpublic void setAmount(double pAmount)
setAmount in interface CostCenterpAmount - the amount to set for this paymentpublic java.util.List getCommerceItemRelationships()
getCommerceItemRelationships in interface CommerceItemRelationshipContainerpublic void addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship) throws DuplicateRelationshipException, InvalidParameterException
addCommerceItemRelationship in interface CommerceItemRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic void addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addCommerceItemRelationship in interface CommerceItemRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic CommerceItemRelationship removeCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeCommerceItemRelationship in interface CommerceItemRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic void removeAllCommerceItemRelationships()
removeAllCommerceItemRelationships in interface CommerceItemRelationshipContainerpublic CommerceItemRelationship getCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getCommerceItemRelationship in interface CommerceItemRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic int getCommerceItemRelationshipCount()
getCommerceItemRelationshipCount in interface CommerceItemRelationshipContainerpublic 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 void addOrderRelationship(OrderRelationship pOrderRelationship) throws DuplicateRelationshipException, InvalidParameterException
addOrderRelationship in interface OrderRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic OrderRelationship removeOrderRelationship() throws RelationshipNotFoundException, InvalidParameterException
removeOrderRelationship in interface OrderRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic OrderRelationship getOrderRelationship() throws RelationshipNotFoundException, InvalidParameterException
getOrderRelationship in interface OrderRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic int getOrderRelationshipCount()
getOrderRelationshipCount in interface OrderRelationshipContainerpublic 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