public class PaymentGroupCommerceItemRelationship extends CommerceIdentifierImpl implements CommerceItemRelationship, PaymentGroupRelationship, ChangedProperties
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
| Constructor and Description |
|---|
PaymentGroupCommerceItemRelationship() |
| Modifier and Type | Method and Description |
|---|---|
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
|
CommerceItem |
getCommerceItem()
Returns the CommerceItem reference.
|
PaymentGroup |
getPaymentGroup()
Returns the PaymentGroup reference.
|
java.lang.Object |
getPropertyValue(java.lang.String pPropertyName)
Returns a property value
|
long |
getQuantity()
Returns the quantity that this Relationship represents.
|
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
|
long |
getReturnedQuantity()
This method is required by the interface but not used for this class
|
boolean |
getSaveAllProperties()
Returns the saveAllProperties
|
int |
getState()
This method is required by the interface but not used for this class
|
java.lang.String |
getStateDetail()
This method is required by the interface but not used for this class
|
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 |
setCommerceItem(CommerceItem pCommerceItem)
Sets the CommerceItem reference.
|
void |
setPaymentGroup(PaymentGroup pGroup)
Sets the PaymentGroup reference.
|
void |
setPropertyValue(java.lang.String pPropertyName,
java.lang.Object pPropertyValue)
Sets a property value
|
void |
setQuantity(long pQuantity)
Sets the quantity that this Relationship represents.
|
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 |
setReturnedQuantity(long pReturnedQuantity)
This method is required by the interface but not used for this class
|
void |
setSaveAllProperties(boolean pSaveAllProperties)
Sets the saveAllProperties
|
void |
setState(int pState)
This method is required by the interface but not used for this class
|
void |
setStateDetail(java.lang.String pStateDetail)
This method is required by the interface but not used for this class
|
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.
|
getId, setIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdpublic static final java.lang.String CLASS_VERSION
public PaymentGroupCommerceItemRelationship()
public java.lang.String getRelationshipClassType()
getRelationshipClassType in interface Relationshippublic void setRelationshipClassType(java.lang.String pRelationshipClassType)
setRelationshipClassType in interface Relationshippublic int getRelationshipType()
getRelationshipType in interface Relationshippublic void setRelationshipType(int pType)
throws InvalidTypeException
setRelationshipType in interface RelationshipInvalidTypeExceptionpublic java.lang.String getRelationshipTypeAsString()
public void setRelationshipTypeAsString(java.lang.String pType)
throws InvalidTypeException
InvalidTypeExceptionpublic PaymentGroup getPaymentGroup()
getPaymentGroup in interface PaymentGroupRelationshippublic void setPaymentGroup(PaymentGroup pGroup)
setPaymentGroup in interface PaymentGroupRelationshippublic CommerceItem getCommerceItem()
getCommerceItem in interface CommerceItemRelationshippublic void setCommerceItem(CommerceItem pCommerceItem)
setCommerceItem in interface CommerceItemRelationshippublic int getState()
getState in interface CommerceItemRelationshippublic void setState(int pState)
setState in interface CommerceItemRelationshippublic java.lang.String getStateDetail()
getStateDetail in interface CommerceItemRelationshippublic void setStateDetail(java.lang.String pStateDetail)
setStateDetail in interface CommerceItemRelationshippublic long getQuantity()
getQuantity in interface CommerceItemRelationshippublic void setQuantity(long pQuantity)
setQuantity in interface CommerceItemRelationshippublic long getReturnedQuantity()
getReturnedQuantity in interface CommerceItemRelationshippublic void setReturnedQuantity(long pReturnedQuantity)
setReturnedQuantity in interface CommerceItemRelationshippublic double getAmount()
getAmount in interface CommerceItemRelationshipgetAmount in interface PaymentGroupRelationshippublic void setAmount(double pAmount)
setAmount in interface CommerceItemRelationshipsetAmount in interface PaymentGroupRelationshippublic 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 ChangedPropertiespublic void setPropertyValue(java.lang.String pPropertyName,
java.lang.Object pPropertyValue)
setPropertyValue in interface ChangedPropertiespPropertyValue - the value to set for the given property value