com.ibm.commerce.foundation.dataload.idresolve

Class IDResolveResponse

  • java.lang.Object
    • com.ibm.commerce.foundation.dataload.idresolve.IDResolveResponse


  • public class IDResolveResponse
    extends java.lang.Object
    ID resolve response. After ID resolve finishes, it will return the ID resolve response. It contains the following properties:
    • primaryKeyMap -- A map contains the primary key. The key is the primary key name and the value is the primary key value
    • keyExist -- it is true if the unique index can be resolved to an existing primary key and it is false if the primary key cannot be resolved. If the generateNewKey is true in the IDResolveRequest and the keyExist is false, a new primary key will be genrated and it is saved in the primaryKeyMap.
    • Constructor Summary

      Constructors 
      Constructor and Description
      IDResolveResponse()
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getPrimaryKey()
      Get the primary key if the primary key only contains one column and the primary key is a long type.
      java.util.Map getPrimaryKeyMap()
      Get the primary Key Map
      boolean isKeyExist()
      Return if the key exist
      void setKeyExist(boolean aKeyExist)
      Set the keyExist value
      void setPrimaryKeyMap(java.util.Map aPrimaryKeyMap)
      set the primary key map
      • Methods inherited from class java.lang.Object

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

      • IDResolveResponse

        public IDResolveResponse()
        Constructor
    • Method Detail

      • isKeyExist

        public boolean isKeyExist()
        Return if the key exist
        Returns:
        the keyexist value
      • setKeyExist

        public void setKeyExist(boolean aKeyExist)
        Set the keyExist value
        Parameters:
        aKeyExist - indicate whether the key exists or not.
      • getPrimaryKeyMap

        public java.util.Map getPrimaryKeyMap()
        Get the primary Key Map
        Returns:
        the primary key map
      • setPrimaryKeyMap

        public void setPrimaryKeyMap(java.util.Map aPrimaryKeyMap)
        set the primary key map
        Parameters:
        aPrimaryKeyMap - primary key map
      • getPrimaryKey

        public java.lang.String getPrimaryKey()
        Get the primary key if the primary key only contains one column and the primary key is a long type.
        Returns:
        the primary key