|
|||||||||
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.CostCenterImpl
public class CostCenterImpl
This class is an implementation of a CostCenter. It represents all the information which designates a cost center.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
CostCenterImpl()
|
Method Summary | |
---|---|
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. |
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 java.lang.String CLASS_VERSION
Constructor Detail |
---|
public CostCenterImpl()
Method Detail |
---|
public java.lang.String getCostCenterClassType()
getCostCenterClassType
in interface CostCenter
public void setCostCenterClassType(java.lang.String pCostCenterClassType)
setCostCenterClassType
in interface CostCenter
public java.lang.String getIdentifier()
getIdentifier
in interface CostCenter
public void setIdentifier(java.lang.String pIdentifier)
setIdentifier
in interface CostCenter
public java.lang.String getDescription()
getDescription
in interface CostCenter
public void setDescription(java.lang.String pDescription)
setDescription
in interface CostCenter
public double getAmount()
getAmount
in interface CostCenter
public void setAmount(double pAmount)
setAmount
in interface CostCenter
pAmount
- the amount to set for this paymentpublic java.util.List getCommerceItemRelationships()
getCommerceItemRelationships
in interface CommerceItemRelationshipContainer
public void addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship) throws DuplicateRelationshipException, InvalidParameterException
addCommerceItemRelationship
in interface CommerceItemRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public void addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addCommerceItemRelationship
in interface CommerceItemRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public CommerceItemRelationship removeCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeCommerceItemRelationship
in interface CommerceItemRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public void removeAllCommerceItemRelationships()
removeAllCommerceItemRelationships
in interface CommerceItemRelationshipContainer
public CommerceItemRelationship getCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getCommerceItemRelationship
in interface CommerceItemRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public int getCommerceItemRelationshipCount()
getCommerceItemRelationshipCount
in interface CommerceItemRelationshipContainer
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 void addOrderRelationship(OrderRelationship pOrderRelationship) throws DuplicateRelationshipException, InvalidParameterException
addOrderRelationship
in interface OrderRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public OrderRelationship removeOrderRelationship() throws RelationshipNotFoundException, InvalidParameterException
removeOrderRelationship
in interface OrderRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public OrderRelationship getOrderRelationship() throws RelationshipNotFoundException, InvalidParameterException
getOrderRelationship
in interface OrderRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public int getOrderRelationshipCount()
getOrderRelationshipCount
in interface OrderRelationshipContainer
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 |