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 name| Modifier 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
SQLExceptionpublic void close() throws SQLException
SQLExceptionpublic <T> T get(Class<T> clazz, Schema.Column col) throws SQLException
T - Type of the columnclazz - Class of the Typecol - Column nameSQLExceptionpublic byte[] getByteArray(Schema.Column col) throws SQLException
col - Column nameSQLExceptionpublic String getString(Schema.Column col) throws SQLException
col - Column NameSQLExceptionpublic Timestamp getTimestamp(Schema.Column col) throws SQLException
col - Column nameSQLExceptionpublic Boolean getBoolean(Schema.Column col) throws SQLException
col - Column nameSQLExceptionpublic Long getLong(Schema.Column col) throws SQLException
col - Column nameSQLExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.