|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
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.
注意: There is no need to implement this. The implementation will be passed into the TypeHandlerCallback automatically.
方法摘要 | |
---|---|
java.sql.Array |
getArray()
Gets an array from the underlying result set |
java.math.BigDecimal |
getBigDecimal()
Gets a BigDecimal from the underlying result set |
java.sql.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 |
java.sql.Clob |
getClob()
Gets a Clob from the underlying result set |
int |
getColumnIndex()
Returns the index of the column being got in the underlying ResultSet. |
java.lang.String |
getColumnName()
Returns the name of the column being got in the underlying ResultSet. |
java.sql.Date |
getDate()
Gets a Date from the underlying result set |
java.sql.Date |
getDate(java.util.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 |
java.lang.Object |
getObject()
Gets an Object from the underlying result set |
java.lang.Object |
getObject(java.util.Map map)
Gets an Object from the underlying result set using a Map |
java.sql.Ref |
getRef()
Gets a Ref from the underlying result set |
java.sql.ResultSet |
getResultSet()
Returns the underlying ResultSet...be careful! |
short |
getShort()
Gets a short from the underlying result set |
java.lang.String |
getString()
Gets a String from the underlying result set |
java.sql.Time |
getTime()
Gets a Time from the underlying result set |
java.sql.Time |
getTime(java.util.Calendar cal)
Gets a Time from the underlying result set using a Calendar |
java.sql.Timestamp |
getTimestamp()
Gets a Timestamp from the underlying result set |
java.sql.Timestamp |
getTimestamp(java.util.Calendar cal)
Gets a Timestamp from the underlying result set |
java.net.URL |
getURL()
Gets a URL from the underlying result set |
boolean |
wasNull()
Tells if the field was null |
方法详细信息 |
---|
java.sql.Array getArray() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionjava.math.BigDecimal getBigDecimal() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionjava.sql.Blob getBlob() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionboolean getBoolean() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionbyte getByte() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionbyte[] getBytes() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionjava.sql.Clob getClob() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionjava.sql.Date getDate() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionjava.sql.Date getDate(java.util.Calendar cal) throws java.sql.SQLException
cal
- - the Calendar
java.sql.SQLException
- - if the underlying result set throws an exceptiondouble getDouble() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionfloat getFloat() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionint getInt() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionlong getLong() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionjava.lang.Object getObject() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionjava.lang.Object getObject(java.util.Map map) throws java.sql.SQLException
map
- - the Map
java.sql.SQLException
- - if the underlying result set throws an exceptionjava.sql.Ref getRef() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionshort getShort() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionjava.lang.String getString() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionjava.sql.Time getTime() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionjava.sql.Time getTime(java.util.Calendar cal) throws java.sql.SQLException
cal
- - the Calendar
java.sql.SQLException
- - if the underlying result set throws an exceptionjava.sql.Timestamp getTimestamp() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionjava.sql.Timestamp getTimestamp(java.util.Calendar cal) throws java.sql.SQLException
cal
- - the Calendar
java.sql.SQLException
- - if the underlying result set throws an exceptionjava.net.URL getURL() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionboolean wasNull() throws java.sql.SQLException
java.sql.SQLException
- - if the underlying result set throws an exceptionjava.sql.ResultSet getResultSet()
java.lang.String getColumnName()
null
in which case the getColumnIndex
method should be used.
int getColumnIndex()
getColumnName
is null.
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |