com.ibatis.sqlmap.client.extensions
Interface ResultGetter

All Known Implementing Classes:
ResultGetterImpl

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
 

方法详细信息

getArray

java.sql.Array getArray()
                        throws java.sql.SQLException
Gets an array from the underlying result set

返回:
- the array
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getBigDecimal

java.math.BigDecimal getBigDecimal()
                                   throws java.sql.SQLException
Gets a BigDecimal from the underlying result set

返回:
- the BigDecimal
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getBlob

java.sql.Blob getBlob()
                      throws java.sql.SQLException
Gets a Blob from the underlying result set

返回:
- the Blob
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getBoolean

boolean getBoolean()
                   throws java.sql.SQLException
Gets a boolean from the underlying result set

返回:
- the boolean
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getByte

byte getByte()
             throws java.sql.SQLException
Gets a byte from the underlying result set

返回:
- the byte
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getBytes

byte[] getBytes()
                throws java.sql.SQLException
Gets a byte[] from the underlying result set

返回:
- the byte[]
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getClob

java.sql.Clob getClob()
                      throws java.sql.SQLException
Gets a Clob from the underlying result set

返回:
- the Clob
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getDate

java.sql.Date getDate()
                      throws java.sql.SQLException
Gets a Date from the underlying result set

返回:
- the Date
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getDate

java.sql.Date getDate(java.util.Calendar cal)
                      throws java.sql.SQLException
Gets a Date from the underlying result set using a calendar

参数:
cal - - the Calendar
返回:
- the Date
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getDouble

double getDouble()
                 throws java.sql.SQLException
Gets a double from the underlying result set

返回:
- the double
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getFloat

float getFloat()
               throws java.sql.SQLException
Gets a float from the underlying result set

返回:
- the float
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getInt

int getInt()
           throws java.sql.SQLException
Gets an int from the underlying result set

返回:
- the int
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getLong

long getLong()
             throws java.sql.SQLException
Gets a long from the underlying result set

返回:
- the long
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getObject

java.lang.Object getObject()
                           throws java.sql.SQLException
Gets an Object from the underlying result set

返回:
- the Object
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getObject

java.lang.Object getObject(java.util.Map map)
                           throws java.sql.SQLException
Gets an Object from the underlying result set using a Map

参数:
map - - the Map
返回:
- the Object
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getRef

java.sql.Ref getRef()
                    throws java.sql.SQLException
Gets a Ref from the underlying result set

返回:
- the Ref
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getShort

short getShort()
               throws java.sql.SQLException
Gets a short from the underlying result set

返回:
- the short
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getString

java.lang.String getString()
                           throws java.sql.SQLException
Gets a String from the underlying result set

返回:
- the String
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getTime

java.sql.Time getTime()
                      throws java.sql.SQLException
Gets a Time from the underlying result set

返回:
- the Time
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getTime

java.sql.Time getTime(java.util.Calendar cal)
                      throws java.sql.SQLException
Gets a Time from the underlying result set using a Calendar

参数:
cal - - the Calendar
返回:
- the Time
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getTimestamp

java.sql.Timestamp getTimestamp()
                                throws java.sql.SQLException
Gets a Timestamp from the underlying result set

返回:
- the Timestamp
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getTimestamp

java.sql.Timestamp getTimestamp(java.util.Calendar cal)
                                throws java.sql.SQLException
Gets a Timestamp from the underlying result set

参数:
cal - - the Calendar
返回:
- the Timestamp
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getURL

java.net.URL getURL()
                    throws java.sql.SQLException
Gets a URL from the underlying result set

返回:
- the URL
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

wasNull

boolean wasNull()
                throws java.sql.SQLException
Tells if the field was null

返回:
- true if it was null
抛出异常:
java.sql.SQLException - - if the underlying result set throws an exception

getResultSet

java.sql.ResultSet getResultSet()
Returns the underlying ResultSet...be careful!

返回:
a ResultSet instance.

getColumnName

java.lang.String getColumnName()
Returns the name of the column being got in the underlying ResultSet. May be null in which case the getColumnIndex method should be used.

返回:
the column name (may be null)

getColumnIndex

int getColumnIndex()
Returns the index of the column being got in the underlying ResultSet. Only use this method if the value returned from getColumnName is null.

返回:
the index of the column (if zero then use the column name)