|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.order.CommerceIdentifierImpl atg.b2bcommerce.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(B2BCommerceItemRelationship pCommerceItemRelationship)
Add the CommerceItemRelationship to the container. |
void |
addCommerceItemRelationship(B2BCommerceItemRelationship pCommerceItemRelationship,
int pIndex)
Add the CommerceItemRelationship to the container at the given index. |
void |
addOrderRelationship(B2BOrderRelationship pOrderRelationship)
Add the OrderRelationship to the container. |
void |
addShippingGroupRelationship(B2BShippingGroupRelationship pShippingGroupRelationship)
Add the ShippingGroupRelationship to the container. |
void |
addShippingGroupRelationship(B2BShippingGroupRelationship 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 |
B2BCommerceItemRelationship |
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 |
B2BOrderRelationship |
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 |
B2BShippingGroupRelationship |
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. |
B2BCommerceItemRelationship |
removeCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId)
Removes a CommerceItemRelationship whose id is passed in. |
B2BOrderRelationship |
removeOrderRelationship()
Removes a OrderRelationship. |
B2BShippingGroupRelationship |
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 B2BCommerceItemRelationshipContainer
public void addCommerceItemRelationship(B2BCommerceItemRelationship pCommerceItemRelationship) throws DuplicateRelationshipException, InvalidParameterException
addCommerceItemRelationship
in interface B2BCommerceItemRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public void addCommerceItemRelationship(B2BCommerceItemRelationship pCommerceItemRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addCommerceItemRelationship
in interface B2BCommerceItemRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public B2BCommerceItemRelationship removeCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeCommerceItemRelationship
in interface B2BCommerceItemRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public void removeAllCommerceItemRelationships()
removeAllCommerceItemRelationships
in interface B2BCommerceItemRelationshipContainer
public B2BCommerceItemRelationship getCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getCommerceItemRelationship
in interface B2BCommerceItemRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public int getCommerceItemRelationshipCount()
getCommerceItemRelationshipCount
in interface B2BCommerceItemRelationshipContainer
public java.util.List getShippingGroupRelationships()
getShippingGroupRelationships
in interface B2BShippingGroupRelationshipContainer
public void addShippingGroupRelationship(B2BShippingGroupRelationship pShippingGroupRelationship) throws DuplicateRelationshipException, InvalidParameterException
addShippingGroupRelationship
in interface B2BShippingGroupRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public void addShippingGroupRelationship(B2BShippingGroupRelationship pShippingGroupRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addShippingGroupRelationship
in interface B2BShippingGroupRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public B2BShippingGroupRelationship removeShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeShippingGroupRelationship
in interface B2BShippingGroupRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public void removeAllShippingGroupRelationships()
removeAllShippingGroupRelationships
in interface B2BShippingGroupRelationshipContainer
public B2BShippingGroupRelationship getShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getShippingGroupRelationship
in interface B2BShippingGroupRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public int getShippingGroupRelationshipCount()
getShippingGroupRelationshipCount
in interface B2BShippingGroupRelationshipContainer
public void addOrderRelationship(B2BOrderRelationship pOrderRelationship) throws DuplicateRelationshipException, InvalidParameterException
addOrderRelationship
in interface B2BOrderRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public B2BOrderRelationship removeOrderRelationship() throws RelationshipNotFoundException, InvalidParameterException
removeOrderRelationship
in interface B2BOrderRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public B2BOrderRelationship getOrderRelationship() throws RelationshipNotFoundException, InvalidParameterException
getOrderRelationship
in interface B2BOrderRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public int getOrderRelationshipCount()
getOrderRelationshipCount
in interface B2BOrderRelationshipContainer
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 |