|
|||||||||
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.PaymentGroupShippingGroupRelationship
public class PaymentGroupShippingGroupRelationship
An object which represents a relationship between a PaymentGroup and a ShippingGroup. The two valid relationship types are ShippingPriceAmount and ShippingPriceRemaining. This Relationship object represents how shipping costs will be paid for. If the relationship type property is ShippingPriceAmount, then the amount field defines the maximum amount that is allowed to be assigned to the PaymentGroup. If the type is ShippingPriceRemaining, then the amount which has not been assigned to any ShippingGroup will be assigned to the PaymentGroup in this Relationship.
Relationship
,
PaymentGroupRelationship
,
ShippingGroupRelationship
,
ChangedProperties
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
PaymentGroupShippingGroupRelationship()
|
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 |
PaymentGroup |
getPaymentGroup()
Returns the paymentGroup |
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 |
ShippingGroup |
getShippingGroup()
Returns the ShippingGroup reference. |
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 |
setPaymentGroup(PaymentGroup pPaymentGroup)
Sets the paymentGroup |
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 |
setShippingGroup(ShippingGroup pShippingGroup)
Sets the ShippingGroup reference. |
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 |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public PaymentGroupShippingGroupRelationship()
Method Detail |
---|
public java.lang.String getRelationshipClassType()
getRelationshipClassType
in interface Relationship
public void setRelationshipClassType(java.lang.String pRelationshipClassType)
setRelationshipClassType
in interface Relationship
public int getRelationshipType()
getRelationshipType
in interface Relationship
public void setRelationshipType(int pType) throws InvalidTypeException
setRelationshipType
in interface Relationship
InvalidTypeException
public java.lang.String getRelationshipTypeAsString()
public void setRelationshipTypeAsString(java.lang.String pType) throws InvalidTypeException
InvalidTypeException
public ShippingGroup getShippingGroup()
getShippingGroup
in interface ShippingGroupRelationship
public void setShippingGroup(ShippingGroup pShippingGroup)
setShippingGroup
in interface ShippingGroupRelationship
public PaymentGroup getPaymentGroup()
getPaymentGroup
in interface PaymentGroupRelationship
public void setPaymentGroup(PaymentGroup pPaymentGroup)
setPaymentGroup
in interface PaymentGroupRelationship
public double getAmount()
getAmount
in interface PaymentGroupRelationship
getAmount
in interface ShippingGroupRelationship
public void setAmount(double pAmount)
setAmount
in interface PaymentGroupRelationship
setAmount
in interface ShippingGroupRelationship
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 value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |