| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.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_VERSIONClass 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 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 B2BCommerceItemRelationshipContainer
public void addCommerceItemRelationship(B2BCommerceItemRelationship pCommerceItemRelationship)
                                 throws DuplicateRelationshipException,
                                        InvalidParameterException
addCommerceItemRelationship in interface B2BCommerceItemRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public void addCommerceItemRelationship(B2BCommerceItemRelationship pCommerceItemRelationship,
                                        int pIndex)
                                 throws DuplicateRelationshipException,
                                        InvalidParameterException
addCommerceItemRelationship in interface B2BCommerceItemRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public B2BCommerceItemRelationship removeCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId)
                                                           throws RelationshipNotFoundException,
                                                                  InvalidParameterException
removeCommerceItemRelationship in interface B2BCommerceItemRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic void removeAllCommerceItemRelationships()
removeAllCommerceItemRelationships in interface B2BCommerceItemRelationshipContainer
public B2BCommerceItemRelationship getCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId)
                                                        throws RelationshipNotFoundException,
                                                               InvalidParameterException
getCommerceItemRelationship in interface B2BCommerceItemRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic int getCommerceItemRelationshipCount()
getCommerceItemRelationshipCount in interface B2BCommerceItemRelationshipContainerpublic java.util.List getShippingGroupRelationships()
getShippingGroupRelationships in interface B2BShippingGroupRelationshipContainer
public void addShippingGroupRelationship(B2BShippingGroupRelationship pShippingGroupRelationship)
                                  throws DuplicateRelationshipException,
                                         InvalidParameterException
addShippingGroupRelationship in interface B2BShippingGroupRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public void addShippingGroupRelationship(B2BShippingGroupRelationship pShippingGroupRelationship,
                                         int pIndex)
                                  throws DuplicateRelationshipException,
                                         InvalidParameterException
addShippingGroupRelationship in interface B2BShippingGroupRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public B2BShippingGroupRelationship removeShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
                                                             throws RelationshipNotFoundException,
                                                                    InvalidParameterException
removeShippingGroupRelationship in interface B2BShippingGroupRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic void removeAllShippingGroupRelationships()
removeAllShippingGroupRelationships in interface B2BShippingGroupRelationshipContainer
public B2BShippingGroupRelationship getShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
                                                          throws RelationshipNotFoundException,
                                                                 InvalidParameterException
getShippingGroupRelationship in interface B2BShippingGroupRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic int getShippingGroupRelationshipCount()
getShippingGroupRelationshipCount in interface B2BShippingGroupRelationshipContainer
public void addOrderRelationship(B2BOrderRelationship pOrderRelationship)
                          throws DuplicateRelationshipException,
                                 InvalidParameterException
addOrderRelationship in interface B2BOrderRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public B2BOrderRelationship removeOrderRelationship()
                                             throws RelationshipNotFoundException,
                                                    InvalidParameterException
removeOrderRelationship in interface B2BOrderRelationshipContainerRelationshipNotFoundException
InvalidParameterException
public B2BOrderRelationship getOrderRelationship()
                                          throws RelationshipNotFoundException,
                                                 InvalidParameterException
getOrderRelationship in interface B2BOrderRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic int getOrderRelationshipCount()
getOrderRelationshipCount in interface B2BOrderRelationshipContainer
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 | ||||||||