|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResultGetter
Allows values to be retrieved from the underlying result set. TypeHandlerCallback implementations use this interface to get values that they can subsequently manipulate before having them returned. Each of these methods has a corresponding method on the ResultSet (or CallableStatement) class, the only difference being that there is no need to specify the column name or index with these methods.
NOTE: There is no need to implement this. The implementation will be passed into the TypeHandlerCallback automatically.
Method Summary | |
---|---|
Array |
getArray()
Gets an array from the underlying result set |
BigDecimal |
getBigDecimal()
Gets a BigDecimal from the underlying result set |
Blob |
getBlob()
Gets a Blob from the underlying result set |
boolean |
getBoolean()
Gets a boolean from the underlying result set |
byte |
getByte()
Gets a byte from the underlying result set |
byte[] |
getBytes()
Gets a byte[] from the underlying result set |
Clob |
getClob()
Gets a Clob from the underlying result set |
int |
getColumnIndex()
Returns the index of the column being got in the underlying ResultSet. |
String |
getColumnName()
Returns the name of the column being got in the underlying ResultSet. |
Date |
getDate()
Gets a Date from the underlying result set |
Date |
getDate(Calendar cal)
Gets a Date from the underlying result set using a calendar |
double |
getDouble()
Gets a double from the underlying result set |
float |
getFloat()
Gets a float from the underlying result set |
int |
getInt()
Gets an int from the underlying result set |
long |
getLong()
Gets a long from the underlying result set |
Object |
getObject()
Gets an Object from the underlying result set |
Object |
getObject(Map map)
Gets an Object from the underlying result set using a Map |
Ref |
getRef()
Gets a Ref from the underlying result set |
ResultSet |
getResultSet()
Returns the underlying ResultSet...be careful! |
short |
getShort()
Gets a short from the underlying result set |
String |
getString()
Gets a String from the underlying result set |
Time |
getTime()
Gets a Time from the underlying result set |
Time |
getTime(Calendar cal)
Gets a Time from the underlying result set using a Calendar |
Timestamp |
getTimestamp()
Gets a Timestamp from the underlying result set |
Timestamp |
getTimestamp(Calendar cal)
Gets a Timestamp from the underlying result set |
URL |
getURL()
Gets a URL from the underlying result set |
boolean |
wasNull()
Tells if the field was null |
Method Detail |
---|
Array getArray() throws SQLException
SQLException
- - if the underlying result set throws an exceptionBigDecimal getBigDecimal() throws SQLException
SQLException
- - if the underlying result set throws an exceptionBlob getBlob() throws SQLException
SQLException
- - if the underlying result set throws an exceptionboolean getBoolean() throws SQLException
SQLException
- - if the underlying result set throws an exceptionbyte getByte() throws SQLException
SQLException
- - if the underlying result set throws an exceptionbyte[] getBytes() throws SQLException
SQLException
- - if the underlying result set throws an exceptionClob getClob() throws SQLException
SQLException
- - if the underlying result set throws an exceptionDate getDate() throws SQLException
SQLException
- - if the underlying result set throws an exceptionDate getDate(Calendar cal) throws SQLException
cal
- - the Calendar
SQLException
- - if the underlying result set throws an exceptiondouble getDouble() throws SQLException
SQLException
- - if the underlying result set throws an exceptionfloat getFloat() throws SQLException
SQLException
- - if the underlying result set throws an exceptionint getInt() throws SQLException
SQLException
- - if the underlying result set throws an exceptionlong getLong() throws SQLException
SQLException
- - if the underlying result set throws an exceptionObject getObject() throws SQLException
SQLException
- - if the underlying result set throws an exceptionObject getObject(Map map) throws SQLException
map
- - the Map
SQLException
- - if the underlying result set throws an exceptionRef getRef() throws SQLException
SQLException
- - if the underlying result set throws an exceptionshort getShort() throws SQLException
SQLException
- - if the underlying result set throws an exceptionString getString() throws SQLException
SQLException
- - if the underlying result set throws an exceptionTime getTime() throws SQLException
SQLException
- - if the underlying result set throws an exceptionTime getTime(Calendar cal) throws SQLException
cal
- - the Calendar
SQLException
- - if the underlying result set throws an exceptionTimestamp getTimestamp() throws SQLException
SQLException
- - if the underlying result set throws an exceptionTimestamp getTimestamp(Calendar cal) throws SQLException
cal
- - the Calendar
SQLException
- - if the underlying result set throws an exceptionURL getURL() throws SQLException
SQLException
- - if the underlying result set throws an exceptionboolean wasNull() throws SQLException
SQLException
- - if the underlying result set throws an exceptionResultSet getResultSet()
String getColumnName()
null
in which case the getColumnIndex
method should be used.
int getColumnIndex()
getColumnName
is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |