Class ReadTableDataTool
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.tools.ReadTableDataTool
-
public class ReadTableDataTool extends Object
Read data from given table and put into a List of maps where each map contains the columns and values of a single line from the table.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
-
-
Constructor Summary
Constructors Constructor Description ReadTableDataTool(ConnectorRepository connectorRepository, String connectorId, TableMetaData tableMetaData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
end()
List<Map<String,Object>>
readTableData(int lines)
void
start()
-
-
-
Constructor Detail
-
ReadTableDataTool
public ReadTableDataTool(ConnectorRepository connectorRepository, String connectorId, TableMetaData tableMetaData)
-
-
Method Detail
-
start
public void start() throws SQLException
- Throws:
SQLException
-
end
public void end() throws SQLException
- Throws:
SQLException
-
readTableData
public List<Map<String,Object>> readTableData(int lines) throws SQLException
- Parameters:
lines
- -1 means read all lines- Returns:
- list of maps containing table data or null of no more data is available
- Throws:
SQLException
-
-