public class ShippingGroupImpl extends CommerceIdentifierImpl implements ShippingGroup, ChangedProperties
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
protected static java.util.ResourceBundle | 
sResourceBundle
Resource Bundle 
 | 
| Constructor and Description | 
|---|
ShippingGroupImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addChangedProperty(java.lang.String pPropertyName)
Adds a changedProperty 
 | 
void | 
addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship)
Add the CommerceItemRelationship to the container. 
 | 
void | 
addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship,
                           int pIndex)
Add the CommerceItemRelationship to the container at the given index. 
 | 
void | 
addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship)
Add the CostCenterRelationship to the container. 
 | 
void | 
addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship,
                         int pIndex)
Add the CostCenterRelationship to the container at the given index. 
 | 
void | 
addHandlingInstruction(HandlingInstruction pHandlingInstruction)
Add the HandlingInstruction to the container. 
 | 
void | 
addHandlingInstruction(HandlingInstruction pHandlingInstruction,
                      int pIndex)
Add the HandlingInstruction to the container at the given index. 
 | 
void | 
addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship)
Add the PaymentGroupRelationship to the container. 
 | 
void | 
addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship,
                           int pIndex)
Add the PaymentGroupRelationship to the container at the given index. 
 | 
boolean | 
arePropertiesEmpty(java.util.Collection<java.lang.String> pPropertiesToCheck)
Query whether the ShippingGroup object is empty. 
 | 
void | 
clearChangedProperties()
Clears the changedProperties List 
 | 
void | 
copyProperties(ShippingGroup pSrcShippingGroup,
              java.util.Collection<java.lang.String> pPropertiesToCopy)
Copy the shipping group information from the source shipping group to itself. 
 | 
boolean | 
doPropertiesMatch(ShippingGroup pShippingGroupToMatchAgainst,
                 java.util.List<java.lang.String> pPropertiesToMatch)
Is the shipping group passed in matches against the current instance?
 
 This method compares the current shipping group instance against the shipping group that is being passed in. 
 | 
java.util.Date | 
getActualShipDate()
Returns property actualShipDate. 
 | 
java.util.Set | 
getChangedProperties()
Returns the changedProperties 
 | 
CommerceItemRelationship | 
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 
 | 
CostCenterRelationship | 
getCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
Returns the CostCenterRelationship whose id is pCostCenterRelationshipId. 
 | 
int | 
getCostCenterRelationshipCount()
Returns the number of CostCenterRelationships in the container. 
 | 
java.util.List | 
getCostCenterRelationships()
Returns a List of CostCenterRelationships 
 | 
java.lang.String | 
getDescription()
Returns the description 
 | 
HandlingInstruction | 
getHandlingInstruction(java.lang.String pHandlingInstructionId)
Returns the HandlingInstruction whose id is pHandlingInstructionId. 
 | 
int | 
getHandlingInstructionCount()
Returns the number of HandlingInstructions in the container. 
 | 
java.util.List | 
getHandlingInstructions()
Returns a List of HandlingInstructions 
 | 
PaymentGroupRelationship | 
getPaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId)
Returns the PaymentGroupRelationship whose id is pPaymentGroupRelationshipId. 
 | 
int | 
getPaymentGroupRelationshipCount()
Returns the number of PaymentGroupRelationships in the container. 
 | 
java.util.List | 
getPaymentGroupRelationships()
Returns a List of PaymentGroupRelationships 
 | 
ShippingPriceInfo | 
getPriceInfo()
returns the ShippingPriceInfo object. 
 | 
MutableRepositoryItem | 
getPriceInfoRepositoryItem()
Returns the priceInfoRepositoryItem 
 | 
java.lang.Object | 
getPropertyValue(java.lang.String pPropertyName)
Returns a property value. 
 | 
MutableRepositoryItem | 
getRepositoryItem()
Returns the repositoryItem 
 | 
boolean | 
getSaveAllProperties()
Returns the saveAllProperties 
 | 
java.util.Date | 
getShipOnDate()
Returns the shipOnDate. 
 | 
java.lang.String | 
getShippingGroupClassType()
Returns the ShippingGroupClassType 
 | 
java.lang.String | 
getShippingMethod()
Returns the shippingMethod 
 | 
java.util.Map | 
getSpecialInstructions()
Returns the specialInstructions 
 | 
int | 
getState()
returns the ShippingGroup state. 
 | 
java.lang.String | 
getStateAsString()
returns the ShippingGroup state as a String. 
 | 
java.lang.String | 
getStateAsUserResource()
returns the ShippingGroup state as a user resource 
 | 
java.lang.String | 
getStateDetail()
returns the ShippingGroup state details. 
 | 
java.util.Date | 
getSubmittedDate()
Returns the submittedDate 
 | 
boolean | 
isChanged()
Returns the isChanged flag 
 | 
void | 
removeAllCommerceItemRelationships()
Removes all the CommerceItemRelationships 
 | 
void | 
removeAllCostCenterRelationships()
Removes all the CostCenterRelationships 
 | 
void | 
removeAllHandlingInstructions()
Removes all the HandlingInstructions in the container. 
 | 
void | 
removeAllPaymentGroupRelationships()
Removes all the PaymentGroupRelationships 
 | 
CommerceItemRelationship | 
removeCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId)
Removes a CommerceItemRelationship whose id is passed in. 
 | 
CostCenterRelationship | 
removeCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
Removes a CostCenterRelationship whose id is passed in. 
 | 
HandlingInstruction | 
removeHandlingInstruction(java.lang.String pHandlingInstructionId)
Removes a HandlingInstruction whose id is passed in. 
 | 
PaymentGroupRelationship | 
removePaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId)
Removes a PaymentGroupRelationship whose id is passed in. 
 | 
void | 
setActualShipDate(java.util.Date pActualShipDate)
Sets property actualShipDate 
 | 
void | 
setChanged(boolean pChanged)
Marks this object as changed 
 | 
void | 
setDescription(java.lang.String pDescription)
Sets the description 
 | 
void | 
setPriceInfo(ShippingPriceInfo pInfo)
sets the ShippingPriceInfo object. 
 | 
void | 
setPriceInfoRepositoryItem(MutableRepositoryItem pPriceInfoRepositoryItem)
Sets the priceInfoRepositoryItem 
 | 
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 
 | 
void | 
setShipOnDate(java.util.Date pShipOnDate)
Sets the shipOnDate 
 | 
void | 
setShippingGroupClassType(java.lang.String pShippingGroupClassType)
Sets the ShippingGroupClassType 
 | 
void | 
setShippingMethod(java.lang.String pShippingMethod)
Sets the shippingMethod 
 | 
void | 
setSpecialInstructions(java.util.Map pSpecialInstructions)
Sets the specialInstructions 
 | 
void | 
setState(int pState)
sets the ShippingGroup state. 
 | 
void | 
setStateAsString(java.lang.String pState)
sets the ShippingGroup state as a string. 
 | 
void | 
setStateDetail(java.lang.String pStateDetail)
sets the ShippingGroup state details. 
 | 
void | 
setSubmittedDate(java.util.Date pSubmittedDate)
Sets the submittedDate 
 | 
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. 
 | 
getId, setIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdpublic static java.lang.String CLASS_VERSION
protected static java.util.ResourceBundle sResourceBundle
public java.lang.String getShippingGroupClassType()
getShippingGroupClassType in interface ShippingGrouppublic void setShippingGroupClassType(java.lang.String pShippingGroupClassType)
setShippingGroupClassType in interface ShippingGrouppublic java.lang.String getShippingMethod()
getShippingMethod in interface ShippingGrouppublic void setShippingMethod(java.lang.String pShippingMethod)
setShippingMethod in interface ShippingGrouppublic java.lang.String getDescription()
getDescription in interface ShippingGrouppublic void setDescription(java.lang.String pDescription)
setDescription in interface ShippingGrouppublic int getState()
getState in interface ShippingGrouppublic void setState(int pState)
setState in interface ShippingGrouppState - the state to setpublic java.lang.String getStateAsString()
public void setStateAsString(java.lang.String pState)
pState - the state to setpublic java.lang.String getStateAsUserResource()
public java.lang.String getStateDetail()
getStateDetail in interface ShippingGrouppublic void setStateDetail(java.lang.String pStateDetail)
setStateDetail in interface ShippingGrouppStateDetail - the stateDetail to setpublic ShippingPriceInfo getPriceInfo()
getPriceInfo in interface ShippingGrouppublic void setPriceInfo(ShippingPriceInfo pInfo)
setPriceInfo in interface ShippingGrouppInfo - the ShippingPriceInfo to setpublic MutableRepositoryItem getPriceInfoRepositoryItem()
public void setPriceInfoRepositoryItem(MutableRepositoryItem pPriceInfoRepositoryItem)
public java.util.Date getShipOnDate()
getShipOnDate in interface ShippingGrouppublic void setShipOnDate(java.util.Date pShipOnDate)
setShipOnDate in interface ShippingGrouppublic java.util.Date getActualShipDate()
getActualShipDate in interface ShippingGrouppublic void setActualShipDate(java.util.Date pActualShipDate)
setActualShipDate in interface ShippingGrouppActualShipDate - the value to set for property actualShipDatepublic java.util.Date getSubmittedDate()
getSubmittedDate in interface ShippingGrouppublic void setSubmittedDate(java.util.Date pSubmittedDate)
setSubmittedDate in interface ShippingGrouppublic java.util.Map getSpecialInstructions()
getSpecialInstructions in interface ShippingGrouppublic void setSpecialInstructions(java.util.Map pSpecialInstructions)
public java.util.List getCommerceItemRelationships()
getCommerceItemRelationships in interface CommerceItemRelationshipContainerpublic void addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship) throws DuplicateRelationshipException, InvalidParameterException
addCommerceItemRelationship in interface CommerceItemRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic void addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addCommerceItemRelationship in interface CommerceItemRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic CommerceItemRelationship removeCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeCommerceItemRelationship in interface CommerceItemRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic void removeAllCommerceItemRelationships()
removeAllCommerceItemRelationships in interface CommerceItemRelationshipContainerpublic CommerceItemRelationship getCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getCommerceItemRelationship in interface CommerceItemRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic int getCommerceItemRelationshipCount()
getCommerceItemRelationshipCount in interface CommerceItemRelationshipContainerpublic java.util.List getPaymentGroupRelationships()
getPaymentGroupRelationships in interface PaymentGroupRelationshipContainerpublic void addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship) throws DuplicateRelationshipException, InvalidParameterException
addPaymentGroupRelationship in interface PaymentGroupRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic void addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addPaymentGroupRelationship in interface PaymentGroupRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic PaymentGroupRelationship removePaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removePaymentGroupRelationship in interface PaymentGroupRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic void removeAllPaymentGroupRelationships()
removeAllPaymentGroupRelationships in interface PaymentGroupRelationshipContainerpublic PaymentGroupRelationship getPaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getPaymentGroupRelationship in interface PaymentGroupRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic int getPaymentGroupRelationshipCount()
getPaymentGroupRelationshipCount in interface PaymentGroupRelationshipContainerpublic java.util.List getHandlingInstructions()
getHandlingInstructions in interface HandlingInstructionContainerpublic void addHandlingInstruction(HandlingInstruction pHandlingInstruction) throws DuplicateHandlingInstructionException, InvalidParameterException
addHandlingInstruction in interface HandlingInstructionContainerDuplicateHandlingInstructionExceptionInvalidParameterExceptionpublic void addHandlingInstruction(HandlingInstruction pHandlingInstruction, int pIndex) throws DuplicateHandlingInstructionException, InvalidParameterException
addHandlingInstruction in interface HandlingInstructionContainerDuplicateHandlingInstructionExceptionInvalidParameterExceptionpublic HandlingInstruction removeHandlingInstruction(java.lang.String pHandlingInstructionId) throws HandlingInstructionNotFoundException, InvalidParameterException
removeHandlingInstruction in interface HandlingInstructionContainerHandlingInstructionNotFoundExceptionInvalidParameterExceptionpublic void removeAllHandlingInstructions()
removeAllHandlingInstructions in interface HandlingInstructionContainerpublic HandlingInstruction getHandlingInstruction(java.lang.String pHandlingInstructionId) throws HandlingInstructionNotFoundException, InvalidParameterException
getHandlingInstruction in interface HandlingInstructionContainerHandlingInstructionNotFoundExceptionInvalidParameterExceptionpublic int getHandlingInstructionCount()
getHandlingInstructionCount in interface HandlingInstructionContainerpublic java.util.List getCostCenterRelationships()
getCostCenterRelationships in interface CostCenterRelationshipContainerpublic void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship) throws DuplicateRelationshipException, InvalidParameterException
addCostCenterRelationship in interface CostCenterRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addCostCenterRelationship in interface CostCenterRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic CostCenterRelationship removeCostCenterRelationship(java.lang.String pCostCenterRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeCostCenterRelationship in interface CostCenterRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic void removeAllCostCenterRelationships()
removeAllCostCenterRelationships in interface CostCenterRelationshipContainerpublic CostCenterRelationship getCostCenterRelationship(java.lang.String pCostCenterRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getCostCenterRelationship in interface CostCenterRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic int getCostCenterRelationshipCount()
getCostCenterRelationshipCount in interface CostCenterRelationshipContainerpublic 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 ChangedPropertiesjava.lang.IllegalStateException - If the repository item wrapped by this implementation is null.public void setPropertyValue(java.lang.String pPropertyName,
                    java.lang.Object pPropertyValue)
setPropertyValue in interface ChangedPropertiespPropertyValue - the value to set for the given property valuejava.lang.IllegalStateException - If the repository item wrapped by this implementation is null.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean arePropertiesEmpty(java.util.Collection<java.lang.String> pPropertiesToCheck)
                           throws CommerceException
If any of the list of properties provided in this method is not found, then this method throws an exception.
Also if any of the property is not empty, then this method considers the object as not empty.
pPropertiesToCheck - -- The list of properties to checkpPropertiesToCheck is null, false otherwise.CommerceExceptionpublic void copyProperties(ShippingGroup pSrcShippingGroup, java.util.Collection<java.lang.String> pPropertiesToCopy) throws CommerceException
If any of the list of properties provided in this method is not found, then this method throws an exception.
pSrcShippingGroup - -- The source shipping group from where the information to be copiedpPropertiesToCopy - -- The list of properties to copyCommerceExceptionpublic boolean doPropertiesMatch(ShippingGroup pShippingGroupToMatchAgainst, java.util.List<java.lang.String> pPropertiesToMatch) throws CommerceException
pShippingGroupToMatchAgainst - -- The shipping group to be matched against the current instancepPropertiesToMatch - -- The List of properties to be matched againstCommerceExceptionAddressTools#compareObjects(Object, Object, List, Set)}