Class CreateDBConnectionProcessor

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

public class CreateDBConnectionProcessor extends FWProcessor
This processor is based on jdbc and creates a connectionpool with the singleton connection pool manager
Required input parameters:
Parameter Description
driver (optional) JDBC driver used for the communication to the database.
Default: org.hsqldb.jdbcDriver
url URL for the given JDBC driver.
Default: jdbc:hsqldb:mem
resultParamKey Output parameter key where the connection is stored in
username (optional) Username of database
password (optional) Password of database
Author:
Andreas Enders
  • Field Details

  • Constructor Details

    • CreateDBConnectionProcessor

      public CreateDBConnectionProcessor()
      Default constructor for this processor.
  • Method Details

    • 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
    • process

      protected boolean process() throws PipeLineException
      creates a connection pool from a existing or non existing database. OutParameter will be a database connection.
      Specified by:
      process in class FWProcessor
      Returns:
      ever true
      Throws:
      PipeLineException - in case of errors
      See Also: