com.ibm.commerce.foundation.dataload.datawriter

Class CMDataWriter

  • All Implemented Interfaces:
    DataWriter


    public class CMDataWriter
    extends CSVDataWriter
    The Data Writer class written for the Coremetrics requirement. This obtains the data to be written to the output file, and formats it according to the requirements of the Coremetrics
    • Constructor Detail

      • CMDataWriter

        public CMDataWriter()
    • Method Detail

      • init

        public void init()
                  throws DataLoadException
        This method initializes the data writer. It obtains the cliendId value required to write out to the output file
        Specified by:
        init in interface DataWriter
        Overrides:
        init in class CSVDataWriter
        Throws:
        DataLoadException - This exception is thrown when an error occurs during initialization
      • getFormattedData

        public java.util.List getFormattedData(java.util.HashMap hMap)
        Obtains a list of data after formatting it according to the requirements.
        Parameters:
        hMap - Hash map that has the data
        Returns:
        List