atg.commerce.order.processor
Class SavedProperties

java.lang.Object
  extended by atg.nucleus.logging.ApplicationLoggingImpl
      extended by atg.commerce.order.processor.SavedProperties
All Implemented Interfaces:
ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging
Direct Known Subclasses:
ProcSaveCommerceItemObjects, ProcSaveCostCenterObjects, ProcSaveHandlingInstructionObjects, ProcSaveOrderObject, ProcSavePaymentGroupObjects, ProcSavePaymentStatusObjects, ProcSavePriceInfoObjects, ProcSaveRelationshipObjects, ProcSaveShippingGroupObjects

public abstract class SavedProperties
extends ApplicationLoggingImpl

This abstract class stores a list of properties to be saved for a bean. Processors which extend this class inherit the functionality for turning on and off the support for ChangedProperties for their processor. In addition, they inherit the savedProperties and propertyDescriptorToBeanPropertyMap properties for listing the property names and mapping them.

See Also:
ChangedProperties

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
protected static java.lang.String ORDER_PROPERTY
           
protected static java.lang.String TYPE_PROPERTY
           
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
SavedProperties()
           
 
Method Summary
 java.lang.String getMappedPropertyName(java.lang.String pBeanPropertyName)
          Returns the repository property name mapped to the bean property name.
 java.util.Properties getPropertyDescriptorToBeanPropertyMap()
          Returns the propertyDescriptorToBeanPropertyMap list
 boolean getSaveChangedPropertiesOnly()
          Returns the saveChangedPropertiesOnly flag
 java.lang.String[] getSavedProperties()
          Returns the savedProperties list
 void setPropertyDescriptorToBeanPropertyMap(java.util.Properties pPropertyDescriptorToBeanPropertyMap)
          Sets the propertyDescriptorToBeanPropertyMap list
 void setSaveChangedPropertiesOnly(boolean pSaveChangedPropertiesOnly)
          Sets the saveChangedPropertiesOnly flag
 void setSavedProperties(java.lang.String[] pSavedProperties)
          Sets the savedProperties list
 
Methods inherited from class atg.nucleus.logging.ApplicationLoggingImpl
addGlobalLogListeners, addLogListener, getLoggingIdentifer, getLoggingIdentifier, getLogListenerCount, getLogListeners, initializeFromServiceEvent, isAutoInitListeners, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, removeLogListener, sendLogEvent, setAutoInitListeners, setLoggingDebug, setLoggingError, setLoggingIdentifier, setLoggingInfo, setLoggingTrace, setLoggingWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


ORDER_PROPERTY

protected static final java.lang.String ORDER_PROPERTY
See Also:
Constant Field Values

TYPE_PROPERTY

protected static final java.lang.String TYPE_PROPERTY
See Also:
Constant Field Values
Constructor Detail

SavedProperties

public SavedProperties()
Method Detail

getSaveChangedPropertiesOnly

public boolean getSaveChangedPropertiesOnly()
Returns the saveChangedPropertiesOnly flag


setSaveChangedPropertiesOnly

public void setSaveChangedPropertiesOnly(boolean pSaveChangedPropertiesOnly)
Sets the saveChangedPropertiesOnly flag


getSavedProperties

public java.lang.String[] getSavedProperties()
Returns the savedProperties list


setSavedProperties

public void setSavedProperties(java.lang.String[] pSavedProperties)
Sets the savedProperties list


getPropertyDescriptorToBeanPropertyMap

public java.util.Properties getPropertyDescriptorToBeanPropertyMap()
Returns the propertyDescriptorToBeanPropertyMap list


setPropertyDescriptorToBeanPropertyMap

public void setPropertyDescriptorToBeanPropertyMap(java.util.Properties pPropertyDescriptorToBeanPropertyMap)
Sets the propertyDescriptorToBeanPropertyMap list


getMappedPropertyName

public java.lang.String getMappedPropertyName(java.lang.String pBeanPropertyName)
Returns the repository property name mapped to the bean property name. If there is no name mapped then the value supplied in pBeanPropertyName is returned because that is assumed to be the repository property name also.

Parameters:
pBeanPropertyName - the bean property name
Returns:
the repository property name