Package net.simplace.pipe.processors
Class DateTableCreatorProcessor
java.lang.Object
net.simplace.pipe.control.FWProcessor
net.simplace.pipe.processors.DateTableCreatorProcessor
This processor takes
Following parameters are available:
Collection<Date>
and stores every entry in
a database table.Following parameters are available:
datesKey
(mandatory)
Reference key to theCollection<Date>
in the parameter map.db_conn
(mandatory)
Reference key to the database connection in the parameter map.destTableName
(mandatory) Name of the table the dates are stored in. If the table already exists it is droped first.destDateColumnName
(optional) Name of the date column in the new table (Default: "DATE").
- Version:
- 1.0
- Author:
- Martin Schmitz
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Constant for in-channel parameter key "destDateColumnName".static final String
Constant for in-channel parameter key "datesKey".static final String
Constant for in-channel parameter key "db_conn".static final String
Constant for in-channel parameter key "destTableName".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()
Stores day in the outputCollection
.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
-
INKEY_DATES_COLLECTION
Constant for in-channel parameter key "datesKey".- See Also:
-
INKEY_DB_CONNECTION
Constant for in-channel parameter key "db_conn".- See Also:
-
INKEY_TABLE_NAME
Constant for in-channel parameter key "destTableName".- See Also:
-
INKEY_COLUMN_NAME
Constant for in-channel parameter key "destDateColumnName".- See Also:
-
-
Constructor Details
-
DateTableCreatorProcessor
public DateTableCreatorProcessor()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
Stores day in the outputCollection
.- Specified by:
process
in classFWProcessor
- Returns:
- ever
true
- Throws:
PipeLineException
-