public static class SqlStatement.ResultSetReader extends java.lang.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(java.lang.Class<T> clazz,
Schema.Column col)
Get the Column data given its type and name
|
java.lang.Boolean |
getBoolean(Schema.Column col)
Get the Boolean Column
|
byte[] |
getByteArray(Schema.Column col)
Get the data for columns with blob type
|
java.lang.Long |
getLong(Schema.Column col)
Get the Numeric data
|
java.lang.String |
getString(Schema.Column col)
Get a String Column
|
java.sql.Timestamp |
getTimestamp(Schema.Column col)
Get the Timestamp Column
|
boolean |
next()
Move the Result Set to next record
|
public boolean next() throws java.sql.SQLException
java.sql.SQLExceptionpublic void close() throws java.sql.SQLException
java.sql.SQLExceptionpublic <T> T get(java.lang.Class<T> clazz, Schema.Column col) throws java.sql.SQLException
T - Type of the columnclazz - Class of the Typecol - Column namejava.sql.SQLExceptionpublic byte[] getByteArray(Schema.Column col) throws java.sql.SQLException
col - Column namejava.sql.SQLExceptionpublic java.lang.String getString(Schema.Column col) throws java.sql.SQLException
col - Column Namejava.sql.SQLExceptionpublic java.sql.Timestamp getTimestamp(Schema.Column col) throws java.sql.SQLException
col - Column namejava.sql.SQLExceptionpublic java.lang.Boolean getBoolean(Schema.Column col) throws java.sql.SQLException
col - Column namejava.sql.SQLExceptionpublic java.lang.Long getLong(Schema.Column col) throws java.sql.SQLException
col - Column namejava.sql.SQLExceptionCopyright © 2018 Apache Software Foundation. All Rights Reserved.