Class HSSFWorkbook2DBProcessor
java.lang.Object
net.simplace.pipe.control.FWProcessor
net.simplace.client.pipe.processors.HSSFWorkbook2DBProcessor
- Direct Known Subclasses:
JXLWorkbook2DBProcessor
This processor reads an XLS document into a HSSF workbook object.
Example configuration:
XLSdata
jdbc:hsqldb:mem:test
org.hsqldb.jdbcDrive
sa
initial //optional
someKey
"readFile" can be a filename or a parameter containing a filename.
Note: The value of "readFile" may not be "readFile"!
"readSheet" can be a sheetname or excel jump marker
(f.e. "data1!A1" for sheet "data1", column "A", row "1"),
it's only "data1" used to open the sheet, the rest is ignored
Parameter | Description |
---|---|
jdbc.connectionpool |
name of the connectionpool - if exisiting in Pipeline url and driver are ignored |
jdbc.driver |
(optional) JDBC driver used for the communication to the database. Default: org.hsqldb.jdbcDriver |
jdbc.url |
(optional)URL for the given JDBC driver. Default: jdbc:hsqldb:mem |
resultParamKey |
Output parameter key where the connection is stored in |
readsheet |
(optional) default to initial |
- Author:
- Andreas Enders
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected boolean
protected File
protected static final String
protected static final String
Instance for Category.protected static final String
protected static final String
protected static final String
protected static final String
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 void
deleteTable
(Connection tConnection, String tSheetName) protected Connection
getConnection
(String aOutParameter) protected boolean
process()
Must be overridden to implement concrete pipe procedure.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
-
JDBC_DRIVER_KEY
Instance for Category.- See Also:
-
JDBC_URL_KEY
- See Also:
-
POOL_NAME_KEY
- See Also:
-
JDBC_DRIVER_DEFAULT
- See Also:
-
JDBC_URL_DEFAULT
- See Also:
-
POOL_NAME_DEFAULT
- See Also:
-
iSourceFile
-
iJdbcDriver
-
iJdbcUrl
-
iConnectionPoolName
-
iPrevAutoCommit
protected boolean iPrevAutoCommit
-
-
Constructor Details
-
HSSFWorkbook2DBProcessor
public HSSFWorkbook2DBProcessor()
-
-
Method Details
-
process
Description copied from class:FWProcessor
Must be overridden to implement concrete pipe procedure.- Specified by:
process
in classFWProcessor
- Returns:
- success
- Throws:
PipeLineException
-
getConnection
- Throws:
PipeLineException
-
checkInParameterMap
public boolean checkInParameterMap()Checks whether the in-channel contains all required parameters.- Overrides:
checkInParameterMap
in classFWProcessor
- Returns:
- true if not overridden by implementations
-
deleteTable
- Parameters:
tConnection
-tSheetName
-
-