com.ibm.commerce.foundation.server.services.dataaccess.bom.config

Class BusinessObjectAttributeConfig

  • java.lang.Object
    • com.ibm.commerce.foundation.server.services.dataaccess.bom.config.BusinessObjectAttributeConfig


  • public class BusinessObjectAttributeConfig
    extends java.lang.Object
    The configuration representing a name value pair configuration in the mediator configuration xml
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getAttributeValue(java.lang.Object aRootPhysicalEntity)
      Get the attribute value represented by this attribute element
      java.lang.String getLogicalName()
      Get the logical name
      java.lang.String getPhysicalPropertyName()
      The the name of the physical property.
      boolean isAttribute()
      Get the value of the flag that marks the NVP as an attribute
      void setAccessPropertyMethod(java.lang.reflect.Method aGetPropertyMethod)
      Set the method for getting the value
      void setAttribute(boolean attribute)
      Set the value for boolean property that marks the NVP as an attribute
      void setAttributeValue(java.lang.String attributeValue, java.lang.Object aPhysicalObject)
      Sets the attribute value in the physical object
      void setAttributeValue(java.lang.String logicalName, java.lang.String attributeValue, java.lang.Object aPhysicalObject)
      Sets the attribute value in the physical object
      void setLogicalName(java.lang.String logicalName)
      Set the logical property name
      void setMutatePropertyMethod(java.lang.reflect.Method aSetPropertyMethod)
      Set the method for setting the value
      void setPhysicalPropertyName(java.lang.String physicalPropertyName)
      Set the physical property name
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BusinessObjectAttributeConfig

        public BusinessObjectAttributeConfig()
    • Method Detail

      • setLogicalName

        public void setLogicalName(java.lang.String logicalName)
        Set the logical property name
        Parameters:
        logicalName -
      • setPhysicalPropertyName

        public void setPhysicalPropertyName(java.lang.String physicalPropertyName)
        Set the physical property name
        Parameters:
        physicalPropertyName -
      • setAccessPropertyMethod

        public void setAccessPropertyMethod(java.lang.reflect.Method aGetPropertyMethod)
        Set the method for getting the value
        Parameters:
        aGetPropertyMethod -
      • setMutatePropertyMethod

        public void setMutatePropertyMethod(java.lang.reflect.Method aSetPropertyMethod)
        Set the method for setting the value
        Parameters:
        aSetPropertyMethod -
      • getLogicalName

        public java.lang.String getLogicalName()
        Get the logical name
        Returns:
        The logical name
      • getAttributeValue

        public java.lang.String getAttributeValue(java.lang.Object aRootPhysicalEntity)
                                           throws java.lang.Exception
        Get the attribute value represented by this attribute element
        Parameters:
        aRootPhysicalEntity - The physical entity that holds the value
        Returns:
        The value in the physical entity for this attribute
        Throws:
        java.lang.Exception
      • setAttributeValue

        public void setAttributeValue(java.lang.String attributeValue,
                                      java.lang.Object aPhysicalObject)
                               throws java.lang.Exception
        Sets the attribute value in the physical object
        Parameters:
        attributeValue - The logical value
        aPhysicalObject - The physical entity in which the value will be set
        Throws:
        java.lang.Exception
      • setAttributeValue

        public void setAttributeValue(java.lang.String logicalName,
                                      java.lang.String attributeValue,
                                      java.lang.Object aPhysicalObject)
                               throws java.lang.Exception
        Sets the attribute value in the physical object
        Parameters:
        logicalName - The logical name of the attribute
        attributeValue - The logical value
        aPhysicalObject - The physical entity in which the value will be set
        Throws:
        java.lang.Exception
      • isAttribute

        public boolean isAttribute()
        Get the value of the flag that marks the NVP as an attribute
        Returns:
        Returns true if the name value pair type is an attribute
      • setAttribute

        public void setAttribute(boolean attribute)
        Set the value for boolean property that marks the NVP as an attribute
        Parameters:
        attribute - The attribute to set.
      • getPhysicalPropertyName

        public final java.lang.String getPhysicalPropertyName()
        The the name of the physical property.
        Returns:
        the physical property name.