public interface DataTableReader
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNull(int row,
int column,
ColumnDefinition metadata)
Check whether a cell is null or not.
|
boolean |
nextRow()
Move cursor to next row.
|
default void |
process(String dataSourceId,
ColumnDefinition[] requestColumns,
ColumnDefinition[] customColumns,
ColumnDefinition[] resultColumns,
DefaultValues defaultValues,
TimeZone timezone,
QueryParameters params,
ResponseWriter writer)
Stream tabular data to response.
|
void |
read(int row,
int column,
ColumnDefinition metadata,
ByteBuffer buffer)
Read value from a cell and write into given
ByteBuffer. |
default int |
skipRows(QueryParameters parameters) |
boolean nextRow()
throws DataAccessException
true if there's more rows to read; false otherwiseDataAccessExceptionboolean isNull(int row,
int column,
ColumnDefinition metadata)
throws DataAccessException
row - zero-based row indexcolumn - zero-based column indexmetadata - column metadatatrue if the cell is null; false otherwiseDataAccessExceptionvoid read(int row,
int column,
ColumnDefinition metadata,
ByteBuffer buffer)
throws DataAccessException
ByteBuffer.row - zero-based row indexcolumn - zero-based column indexmetadata - column metadatabuffer - byte bufferDataAccessExceptiondefault void process(String dataSourceId, ColumnDefinition[] requestColumns, ColumnDefinition[] customColumns, ColumnDefinition[] resultColumns, DefaultValues defaultValues, TimeZone timezone, QueryParameters params, ResponseWriter writer) throws DataAccessException
dataSourceId - id of the datasourcerequestColumns - requested columnscustomColumns - custom columns defined in datasourceresultColumns - result columnsdefaultValues - default values defined in datasourcetimezone - preferred timezoneparams - query parameterswriter - response writerDataAccessExceptiondefault int skipRows(QueryParameters parameters)
Copyright © 2019–2021. All rights reserved.