public static class SqlStatement.ResultSetReader extends Object
ResultSetReader
is used to parse the result set and gives methods for getting appropriate type of
data given the column nameModifier and Type | Method and Description |
---|---|
void |
close()
Close the Result Set
|
<T> T |
get(Class<T> clazz,
Schema.Column col)
Get the Column data given its type and name
|
Boolean |
getBoolean(Schema.Column col)
Get the Boolean Column
|
byte[] |
getByteArray(Schema.Column col)
Get the data for columns with blob type
|
Long |
getLong(Schema.Column col)
Get the Numeric data
|
String |
getString(Schema.Column col)
Get a String Column
|
Timestamp |
getTimestamp(Schema.Column col)
Get the Timestamp Column
|
boolean |
next()
Move the Result Set to next record
|
public boolean next() throws SQLException
SQLException
- in case of errorpublic void close() throws SQLException
SQLException
- in case of errorpublic <T> T get(Class<T> clazz, Schema.Column col) throws SQLException
T
- Type of the columnclazz
- Class of the Typecol
- Column nameSQLException
- in case of errorpublic byte[] getByteArray(Schema.Column col) throws SQLException
col
- Column nameSQLException
- in case of errorpublic String getString(Schema.Column col) throws SQLException
col
- Column NameSQLException
- in case of errorpublic Timestamp getTimestamp(Schema.Column col) throws SQLException
col
- Column nameSQLException
- in case of errorpublic Boolean getBoolean(Schema.Column col) throws SQLException
col
- Column nameSQLException
- in case of errorpublic Long getLong(Schema.Column col) throws SQLException
col
- Column nameSQLException
- in case of errorCopyright © 2018 Apache Software Foundation. All rights reserved.