Class AsciiToMapProcessor

java.lang.Object
net.simplace.pipe.control.FWProcessor
net.simplace.pipe.processors.AsciiToMapProcessor

public class AsciiToMapProcessor extends FWProcessor
This processor transforms data from an ASCII file into the database. It works in similar way as DatasetLoaderProcessor.
Parameter Description
jdbc_driver (optional) JDBC driver used for the communication to the database.
Default: org.hsqldb.jdbcDriver
jdbc_url URL for the given JDBC driver.
Default: jdbc:hsqldb:mem
source Path or URL to input file(s)
Furthermore following configuration is expected (as a subelement in processor element in the configuration file) to describe the concrete data, that shall be read. The meaning of all elements and their attributes are the same as in DatasetLoaderProcessor. Added <sqlType> elements represent SQL type of appropriate field which is used for definition of the database table holding the data.
Author:
Martin Uhlir
  • Field Details

    • DESTKEY_KEY

      public static final String DESTKEY_KEY
      Constant for in channel parameter key "DestParamKey".
      See Also:
    • SOURCE_KEY

      public static final String SOURCE_KEY
      Constant for in-channel parameter key "sourceFile".
      See Also:
  • Constructor Details

    • AsciiToMapProcessor

      public AsciiToMapProcessor()
  • Method Details

    • process

      protected boolean process() throws PipeLineException
      Description copied from class: FWProcessor
      Must be overridden to implement concrete pipe procedure.
      Specified by:
      process in class FWProcessor
      Returns:
      success
      Throws:
      PipeLineException
    • checkInParameterMap

      public boolean checkInParameterMap()
      Checks whether the in-channel contains all required parameters.
      Overrides:
      checkInParameterMap in class FWProcessor
      Returns:
      true if not overridden by implementations