Package net.simplace.pipe.processors
Class ReleaseDBConnectionProcessor
java.lang.Object
net.simplace.pipe.control.FWProcessor
net.simplace.pipe.processors.ReleaseDBConnectionProcessor
This processor is based on jdbc and releases a connectionpool with the singleton
connection pool manager
Required input parameters:
Required input parameters:
- Key
db_conn: Database connection parameter in PipeLine
- Version:
- 1.0
- Author:
- Andreas Enders
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for in parameter key "resultParamKey".Fields inherited from class net.simplace.pipe.control.FWProcessor
iAllreadyLoopedCount, iContainer, iInObservable, iObservable, iProgressTasks -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether the in-channel contains all required parameters.protected booleanprocess()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
-
RESULTKEY_KEY
Constant for in parameter key "resultParamKey".- See Also:
-
-
Constructor Details
-
ReleaseDBConnectionProcessor
public ReleaseDBConnectionProcessor()Default constructor for this processor.
-
-
Method Details
-
checkInParameterMap
public boolean checkInParameterMap()Checks whether the in-channel contains all required parameters.- Overrides:
checkInParameterMapin 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:
processin classFWProcessor- Returns:
- ever
true - Throws:
PipeLineException- in case of errors- See Also:
-