Package net.simplace.pipe.processors
Class CreateDBConnectionProcessor
java.lang.Object
net.simplace.pipe.control.FWProcessor
net.simplace.pipe.processors.CreateDBConnectionProcessor
This processor is based on jdbc and creates a connectionpool with the singleton
connection pool manager
Required input parameters:
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 Summary
Modifier and TypeFieldDescriptionstatic final String
Constant for in parameter key "url".static final String
Constant for in parameter key "pw".static final String
Constant for in parameter key "resultParamKey".static final String
Constant for in parameter key "url".static final String
Constant for in parameter key "user".Fields inherited from class net.simplace.pipe.control.FWProcessor
iAllreadyLoopedCount, iContainer, iInObservable, iObservable, iProgressTasks
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks whether the in-channel contains all required parameters.protected boolean
process()
creates a connection pool from a existing or non existing database.Methods inherited from class net.simplace.pipe.control.FWProcessor
checkOutParameterMap, clone, containsParameter, createProcessor, createProcessor, fireTaskEvent, getAllStringInParameters, getConfiguration, getInitialParameters, getInParameter, getInParameter, getInParameters, getNewProgressTask, getOutParameter, getOutParameterKeys, getPipeLine, getProgressTask, getStringInParameter, getStringInParameter, getSystemID, hasConfiguration, isEndOfPipe, pipe, removeOutParameter, setConfiguration, setEndOfPipeFlag, setInitialParameters, setInParameterMap, setLoopedCount, setOutParameter, setStateOfTask, setStateProgressing, toXML
-
Field Details
-
DRIVER_KEY
Constant for in parameter key "url".- See Also:
-
URL_KEY
Constant for in parameter key "url".- See Also:
-
USER_KEY
Constant for in parameter key "user".- See Also:
-
PW_KEY
Constant for in parameter key "pw".- See Also:
-
RESULTKEY_KEY
Constant for in parameter key "resultParamKey".- See Also:
-
-
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 classFWProcessor
- Returns:
- true if not overridden by implementations
-
process
creates a connection pool from a existing or non existing database. OutParameter will be a database connection.- Specified by:
process
in classFWProcessor
- Returns:
- ever
true
- Throws:
PipeLineException
- in case of errors- See Also:
-