atg.commerce.order
Class HandlingInstructionImpl

java.lang.Object
  extended by atg.commerce.order.CommerceIdentifierImpl
      extended by atg.commerce.order.HandlingInstructionImpl
All Implemented Interfaces:
ChangedProperties, CommerceIdentifier, HandlingInstruction, java.io.Serializable, java.util.Observer
Direct Known Subclasses:
GiftlistHandlingInstruction

public class HandlingInstructionImpl
extends CommerceIdentifierImpl
implements HandlingInstruction, ChangedProperties

An implementation of a class which represents a Handling object. This class implements all the methods to manipulate a Handling object.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
HandlingInstructionImpl()
           
 
Method Summary
 void addChangedProperty(java.lang.String pPropertyName)
          Adds a changedProperty
 void clearChangedProperties()
          Clears the changedProperties List
 java.util.Set getChangedProperties()
          Returns the changedProperties
 java.lang.String getCommerceItemId()
          Returns the commerceItemId
 java.lang.String getHandlingInstructionClassType()
          Returns the handlingInstructionClassType
 java.lang.String getHandlingMethod()
          Returns property handlingMethod
 java.lang.Object getPropertyValue(java.lang.String pPropertyName)
          Returns a property value
 long getQuantity()
          Returns the quantity
 MutableRepositoryItem getRepositoryItem()
          Returns the repositoryItem
 boolean getSaveAllProperties()
          Returns the saveAllProperties
 java.lang.String getShippingGroupId()
          Returns the shippingGroupId
 boolean isChanged()
          Returns the isChanged flag
 void setChanged(boolean pChanged)
          Marks this object as changed
 void setCommerceItemId(java.lang.String pCommerceItemId)
          Sets the commerceItemId
 void setHandlingInstructionClassType(java.lang.String pHandlingInstructionClassType)
          Sets the handlingInstructionClassType
 void setHandlingMethod(java.lang.String pHandlingMethod)
          Sets property handlingMethod
 void setPropertyValue(java.lang.String pPropertyName, java.lang.Object pPropertyValue)
          Sets a property value
 void setQuantity(long pQuantity)
          Sets the quantity
 void setRepositoryItem(MutableRepositoryItem pRepositoryItem)
          Sets the repositoryItem
 void setSaveAllProperties(boolean pSaveAllProperties)
          Sets the saveAllProperties
 void setShippingGroupId(java.lang.String pShippingGroupId)
          Sets the shippingGroupId
 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

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values
Constructor Detail

HandlingInstructionImpl

public HandlingInstructionImpl()
Method Detail

getHandlingInstructionClassType

public java.lang.String getHandlingInstructionClassType()
Returns the handlingInstructionClassType

Specified by:
getHandlingInstructionClassType in interface HandlingInstruction

setHandlingInstructionClassType

public void setHandlingInstructionClassType(java.lang.String pHandlingInstructionClassType)
Sets the handlingInstructionClassType

Specified by:
setHandlingInstructionClassType in interface HandlingInstruction

getHandlingMethod

public java.lang.String getHandlingMethod()
Returns property handlingMethod

Specified by:
getHandlingMethod in interface HandlingInstruction
Returns:
returns property handlingMethod

setHandlingMethod

public void setHandlingMethod(java.lang.String pHandlingMethod)
Sets property handlingMethod

Specified by:
setHandlingMethod in interface HandlingInstruction
Parameters:
pHandlingMethod - the value to set for property handlingMethod

getCommerceItemId

public java.lang.String getCommerceItemId()
Returns the commerceItemId

Specified by:
getCommerceItemId in interface HandlingInstruction

setCommerceItemId

public void setCommerceItemId(java.lang.String pCommerceItemId)
Sets the commerceItemId

Specified by:
setCommerceItemId in interface HandlingInstruction

getShippingGroupId

public java.lang.String getShippingGroupId()
Returns the shippingGroupId

Specified by:
getShippingGroupId in interface HandlingInstruction

setShippingGroupId

public void setShippingGroupId(java.lang.String pShippingGroupId)
Sets the shippingGroupId

Specified by:
setShippingGroupId in interface HandlingInstruction

getQuantity

public long getQuantity()
Returns the quantity

Specified by:
getQuantity in interface HandlingInstruction

setQuantity

public void setQuantity(long pQuantity)
Sets the quantity

Specified by:
setQuantity in interface HandlingInstruction

update

public 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.

Specified by:
update in interface java.util.Observer
Parameters:
o - the object which changed
arg - the name of the property which changed

getSaveAllProperties

public boolean getSaveAllProperties()
Returns the saveAllProperties

Specified by:
getSaveAllProperties in interface ChangedProperties

setSaveAllProperties

public void setSaveAllProperties(boolean pSaveAllProperties)
Sets the saveAllProperties

Specified by:
setSaveAllProperties in interface ChangedProperties

isChanged

public boolean isChanged()
Returns the isChanged flag

Specified by:
isChanged in interface ChangedProperties

setChanged

public void setChanged(boolean pChanged)
Marks this object as changed

Specified by:
setChanged in interface ChangedProperties

getChangedProperties

public java.util.Set getChangedProperties()
Returns the changedProperties

Specified by:
getChangedProperties in interface ChangedProperties

addChangedProperty

public void addChangedProperty(java.lang.String pPropertyName)
Adds a changedProperty

Specified by:
addChangedProperty in interface ChangedProperties

clearChangedProperties

public void clearChangedProperties()
Clears the changedProperties List

Specified by:
clearChangedProperties in interface ChangedProperties

getRepositoryItem

public MutableRepositoryItem getRepositoryItem()
Returns the repositoryItem

Specified by:
getRepositoryItem in interface ChangedProperties

setRepositoryItem

public void setRepositoryItem(MutableRepositoryItem pRepositoryItem)
Sets the repositoryItem

Specified by:
setRepositoryItem in interface ChangedProperties

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.String pPropertyName)
Returns a property value

Specified by:
getPropertyValue in interface ChangedProperties
Returns:
returns a property value

setPropertyValue

public void setPropertyValue(java.lang.String pPropertyName,
                             java.lang.Object pPropertyValue)
Sets a property value

Specified by:
setPropertyValue in interface ChangedProperties
Parameters:
pPropertyValue - the value to set for the given property value