com.ibm.commerce.foundation.dataload.object

Class DataLoadBusinessObject

  • java.lang.Object
    • com.ibm.commerce.foundation.dataload.object.DataLoadBusinessObject


  • public class DataLoadBusinessObject
    extends java.lang.Object
    The Data load business object is an object containing a data object and an action code. The data object is a business object which can be an SDO or other data object. The action code can be: ACTION_CODE_INSERT, ACTION_CODE_DELETE and ACTION_CODE_INSERT_UPDATE. The default is ACTION_CODE_INSERT_UPDATE if the action code is not set.
    • Constructor Summary

      Constructors 
      Constructor and Description
      DataLoadBusinessObject(java.lang.Object dataObject)
      Constructor.
      DataLoadBusinessObject(java.lang.Object dataObject, java.lang.Object inputData)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getActionCode()
      Get the action code for this instance
      java.lang.Object getDataObject()
      Get the data object
      java.lang.Object getInputData()
      Get the input data
      void setActionCode(int actionCode)
      Set the action code.
      void setDataObject(java.lang.Object dataObject)
      Set the data object
      void setInputData(java.lang.Object inputData)
      Set the input data
      • Methods inherited from class java.lang.Object

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

      • ACTION_CODE_UNDEFINED

        public static final int ACTION_CODE_UNDEFINED
        A constant 0 to indicate that the action code is not defined.
        See Also:
        Constant Field Values
      • ACTION_CODE_INSERT

        public static final int ACTION_CODE_INSERT
        A constant 1 to define the add action code.
        See Also:
        Constant Field Values
      • ACTION_CODE_DELETE

        public static final int ACTION_CODE_DELETE
        A constant 2 to define the delete action code.
        See Also:
        Constant Field Values
      • ACTION_CODE_INSERT_UPDATE

        public static final int ACTION_CODE_INSERT_UPDATE
        A constant 3 to define the update action code.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DataLoadBusinessObject

        public DataLoadBusinessObject(java.lang.Object dataObject)
        Constructor. It creates a data load business object with the dataObject.
        Parameters:
        dataObject - the data object
      • DataLoadBusinessObject

        public DataLoadBusinessObject(java.lang.Object dataObject,
                                      java.lang.Object inputData)
        Constructor. It creates a data load business object with the dataObject and inputData.
        Parameters:
        dataObject - the data object
        inputData - the input data from the DataReader
    • Method Detail

      • getDataObject

        public java.lang.Object getDataObject()
        Get the data object
        Returns:
        the data object
      • setDataObject

        public void setDataObject(java.lang.Object dataObject)
        Set the data object
        Parameters:
        dataObject - the data object
      • getInputData

        public java.lang.Object getInputData()
        Get the input data
        Returns:
        the input data
      • setInputData

        public void setInputData(java.lang.Object inputData)
        Set the input data
        Parameters:
        inputData - the input data.
      • getActionCode

        public int getActionCode()
        Get the action code for this instance
        Returns:
        the action code.
      • setActionCode

        public void setActionCode(int actionCode)
        Set the action code.
        Parameters:
        actionCode -