| 
 | |||||||||
| 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.CostCenterOrderRelationship
public class CostCenterOrderRelationship
An object which represents a relationship between an Order and a CostCenter. The valid relationship types are CCOrderAmount, CCOrderAmountRemaining, CCTaxAmount, and CCTaxAmountRemaining. CCOrderAmount specifies a specific amount of the entire cost of an Order which is assigned to the CostCenter in the Relationship. CCOrderAmountRemaining specifies the amount of the Order which has not been assigned to any CostCenter be assigned to the CostCenter in the Relationship. CCTaxAmount specifies a specific amount of the tax of an Order which is assigned to the CostCenter in the Relationship. CCTaxAmountRemaining specifies the amount of the tax of an Order which has not been assigned to any CostCenter be assigned to the CostCenter in the Relationship.
| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
| Constructor Summary | |
|---|---|
| CostCenterOrderRelationship() | |
| Method Summary | |
|---|---|
|  void | addChangedProperty(java.lang.String pPropertyName)Adds a changedProperty | 
|  void | clearChangedProperties()Clears the changedProperties List | 
|  double | getAmount()Returns the amount that this relationship represents | 
|  java.util.Set | getChangedProperties()Returns the changedProperties | 
|  CostCenter | getCostCenter()Returns the CostCenter reference. | 
|  B2BOrder | getOrder()Returns the order | 
|  java.lang.Object | getPropertyValue(java.lang.String pPropertyName)Returns a property value | 
|  java.lang.String | getRelationshipClassType()Returns the relationshipClassType | 
|  int | getRelationshipType()Returns the Relationship type. | 
|  java.lang.String | getRelationshipTypeAsString()Returns the Relationship type as a String. | 
|  MutableRepositoryItem | getRepositoryItem()Returns the repositoryItem | 
|  boolean | getSaveAllProperties()Returns the saveAllProperties | 
|  boolean | isChanged()Returns the isChanged flag | 
|  void | setAmount(double pAmount)Sets the amount that this relationship represents | 
|  void | setChanged(boolean pChanged)Marks this object as changed | 
|  void | setCostCenter(CostCenter pCostCenter)Sets the CostCenter reference. | 
|  void | setOrder(B2BOrder pOrder)Sets the order | 
|  void | setPropertyValue(java.lang.String pPropertyName,
                 java.lang.Object pPropertyValue)Sets a property value | 
|  void | setRelationshipClassType(java.lang.String pRelationshipClassType)Sets the relationshipClassType | 
|  void | setRelationshipType(int pType)Set the Relationship type. | 
|  void | setRelationshipTypeAsString(java.lang.String pType)Set the Relationship type as a String. | 
|  void | setRepositoryItem(MutableRepositoryItem pRepositoryItem)Sets the repositoryItem | 
|  void | setSaveAllProperties(boolean pSaveAllProperties)Sets the saveAllProperties | 
|  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, toString, wait, wait, wait | 
| Methods inherited from interface atg.commerce.order.CommerceIdentifier | 
|---|
| getId | 
| Methods inherited from interface atg.commerce.order.CommerceIdentifier | 
|---|
| getId | 
| Field Detail | 
|---|
public static java.lang.String CLASS_VERSION
| Constructor Detail | 
|---|
public CostCenterOrderRelationship()
| Method Detail | 
|---|
public java.lang.String getRelationshipClassType()
getRelationshipClassType in interface Relationshippublic void setRelationshipClassType(java.lang.String pRelationshipClassType)
setRelationshipClassType in interface Relationshippublic int getRelationshipType()
getRelationshipType in interface Relationship
public void setRelationshipType(int pType)
                         throws InvalidTypeException
setRelationshipType in interface RelationshipInvalidTypeExceptionpublic java.lang.String getRelationshipTypeAsString()
public void setRelationshipTypeAsString(java.lang.String pType)
                                 throws InvalidTypeException
InvalidTypeExceptionpublic CostCenter getCostCenter()
getCostCenter in interface CostCenterRelationshippublic void setCostCenter(CostCenter pCostCenter)
setCostCenter in interface CostCenterRelationshippublic B2BOrder getOrder()
getOrder in interface B2BOrderRelationshippublic void setOrder(B2BOrder pOrder)
setOrder in interface B2BOrderRelationshippublic double getAmount()
getAmount in interface B2BOrderRelationshipgetAmount in interface CostCenterRelationshippublic void setAmount(double pAmount)
setAmount in interface B2BOrderRelationshipsetAmount in interface CostCenterRelationship
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 value| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||