public class JdbcResultsetTableInput extends AbstractTableInput implements ColumnMetadataHolder
DEFAULT_COLUMN_HEADER
Constructor and Description |
---|
JdbcResultsetTableInput(ResultSet resultSet) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the input meaning : "the reading session it's done !"
|
List<ColumnMetadata> |
getColumnMetadata()
getter for columns metadata (column label/header, horizontal alignment, etc.)
|
boolean |
hasMoreRows()
returns true if there are more rows to read
|
List<Object> |
nextRow()
returns the next row
|
void |
open()
opens the Input in order to start reading from it
|
getStatus
public JdbcResultsetTableInput(ResultSet resultSet)
resultSet
- public void open()
open
in interface TableInput
open
in class AbstractTableInput
public void close() throws TableInputException
close
in interface TableInput
close
in class AbstractTableInput
TableInputException
public List<Object> nextRow() throws TableInputException
nextRow
in interface TableInput
TableInputException
public boolean hasMoreRows()
hasMoreRows
in interface TableInput
public List<ColumnMetadata> getColumnMetadata()
ColumnMetadataHolder
getter for columns metadata (column label/header, horizontal alignment, etc.)
This is an optional method. If your input doesn't contain any meta data then return an empty array.getColumnMetadata
in interface ColumnMetadataHolder
Copyright © 2006–2015. All rights reserved.