|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.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 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 CommerceItemRelationshipContainer
public void addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship)
throws DuplicateRelationshipException,
InvalidParameterException
addCommerceItemRelationship in interface CommerceItemRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public void addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship,
int pIndex)
throws DuplicateRelationshipException,
InvalidParameterException
addCommerceItemRelationship in interface CommerceItemRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public CommerceItemRelationship removeCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId)
throws RelationshipNotFoundException,
InvalidParameterException
removeCommerceItemRelationship in interface CommerceItemRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic void removeAllCommerceItemRelationships()
removeAllCommerceItemRelationships in interface CommerceItemRelationshipContainer
public CommerceItemRelationship getCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId)
throws RelationshipNotFoundException,
InvalidParameterException
getCommerceItemRelationship in interface CommerceItemRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic int getCommerceItemRelationshipCount()
getCommerceItemRelationshipCount in interface CommerceItemRelationshipContainerpublic java.util.List getShippingGroupRelationships()
getShippingGroupRelationships in interface ShippingGroupRelationshipContainer
public void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship)
throws DuplicateRelationshipException,
InvalidParameterException
addShippingGroupRelationship in interface ShippingGroupRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship,
int pIndex)
throws DuplicateRelationshipException,
InvalidParameterException
addShippingGroupRelationship in interface ShippingGroupRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public ShippingGroupRelationship removeShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
throws RelationshipNotFoundException,
InvalidParameterException
removeShippingGroupRelationship in interface ShippingGroupRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic void removeAllShippingGroupRelationships()
removeAllShippingGroupRelationships in interface ShippingGroupRelationshipContainer
public ShippingGroupRelationship getShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
throws RelationshipNotFoundException,
InvalidParameterException
getShippingGroupRelationship in interface ShippingGroupRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic int getShippingGroupRelationshipCount()
getShippingGroupRelationshipCount in interface ShippingGroupRelationshipContainer
public void addOrderRelationship(OrderRelationship pOrderRelationship)
throws DuplicateRelationshipException,
InvalidParameterException
addOrderRelationship in interface OrderRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public OrderRelationship removeOrderRelationship()
throws RelationshipNotFoundException,
InvalidParameterException
removeOrderRelationship in interface OrderRelationshipContainerRelationshipNotFoundException
InvalidParameterException
public OrderRelationship getOrderRelationship()
throws RelationshipNotFoundException,
InvalidParameterException
getOrderRelationship in interface OrderRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic int getOrderRelationshipCount()
getOrderRelationshipCount in interface OrderRelationshipContainer
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 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 ChangedProperties
public 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||