com.ibm.commerce.foundation.server.services.valuemapping

Class ValueMapping

  • java.lang.Object
    • com.ibm.commerce.foundation.server.services.valuemapping.ValueMapping


  • public class ValueMapping
    extends java.lang.Object
    Configuration object that contains the relationship between an external key and the internal key in the system. This object is used to represent the relationship between different objects that will represent unique identifiers of business objects. This relationship will also resolve the internal key value based on the external key value and vise versa.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Set getAllExternalValues()
      Returns all external key values.
      java.util.Collection getAllInternalValues()
      Returns all internal values.
      java.lang.Object getExternalName()
      Returns the object that represent the external key.
      java.lang.Object getExternalValue(java.lang.Object internalValue)
      Returns the external key value for the specified internal key value.
      java.lang.Object getInternalName()
      Returns the object that represents the internal key.
      java.lang.Object getInternalValue(java.lang.Object externalValue)
      Returns the internal key value for the specified external key value.
      java.lang.String toString()
      Returns the string representation of the object for debugging purposes.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getExternalName

        public java.lang.Object getExternalName()
        Returns the object that represent the external key.
        Returns:
        The object that represents the external key.
      • getInternalName

        public java.lang.Object getInternalName()
        Returns the object that represents the internal key.
        Returns:
        The object that represents the internal key.
      • getExternalValue

        public java.lang.Object getExternalValue(java.lang.Object internalValue)
        Returns the external key value for the specified internal key value.
        Parameters:
        internalValue - The internal key value.
        Returns:
        The associated external key value for the given internal key value.
      • getInternalValue

        public java.lang.Object getInternalValue(java.lang.Object externalValue)
        Returns the internal key value for the specified external key value.
        Parameters:
        externalValue - The external key value.
        Returns:
        The associated internal key value for the given external key value.
      • getAllExternalValues

        public java.util.Set getAllExternalValues()
        Returns all external key values.
        Returns:
        external key values.
      • getAllInternalValues

        public java.util.Collection getAllInternalValues()
        Returns all internal values.
        Returns:
        internal values.
      • toString

        public java.lang.String toString()
        Returns the string representation of the object for debugging purposes.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation of the object.