|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.util.db.SqlStatement.ResultSetReader
public static class SqlStatement.ResultSetReader
ResultSetReader
is used to parse the result set and gives methods for getting appropriate type of
data given the column name
Method Summary | ||
---|---|---|
void |
close()
Close the Result Set |
|
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean next() throws SQLException
SQLException
public void close() throws SQLException
SQLException
public <T> T get(Class<T> clazz, Schema.Column col) throws SQLException
T
- Type of the columnclazz
- Class of the Typecol
- Column name
SQLException
public byte[] getByteArray(Schema.Column col) throws SQLException
col
- Column name
SQLException
public String getString(Schema.Column col) throws SQLException
col
- Column Name
SQLException
public Timestamp getTimestamp(Schema.Column col) throws SQLException
col
- Column name
SQLException
public Boolean getBoolean(Schema.Column col) throws SQLException
col
- Column name
SQLException
public Long getLong(Schema.Column col) throws SQLException
col
- Column name
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |