|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibatis.sqlmap.engine.type.ResultGetterImpl
A ResultGetter implementation
Constructor Summary | |
ResultGetterImpl(java.sql.ResultSet resultSet,
int columnIndex)
Creates an instance for a PreparedStatement and column index |
|
ResultGetterImpl(java.sql.ResultSet resultSet,
java.lang.String columnName)
Creates an instance for a PreparedStatement and column name |
Method Summary | |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResultGetterImpl(java.sql.ResultSet resultSet, int columnIndex)
resultSet
- - the result setcolumnIndex
- - the column indexpublic ResultGetterImpl(java.sql.ResultSet resultSet, java.lang.String columnName)
resultSet
- - the result setcolumnName
- - the column indexMethod Detail |
public java.sql.Array getArray() throws java.sql.SQLException
ResultGetter
getArray
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic java.math.BigDecimal getBigDecimal() throws java.sql.SQLException
ResultGetter
getBigDecimal
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic java.sql.Blob getBlob() throws java.sql.SQLException
ResultGetter
getBlob
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic boolean getBoolean() throws java.sql.SQLException
ResultGetter
getBoolean
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic byte getByte() throws java.sql.SQLException
ResultGetter
getByte
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic byte[] getBytes() throws java.sql.SQLException
ResultGetter
getBytes
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic java.sql.Clob getClob() throws java.sql.SQLException
ResultGetter
getClob
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic java.sql.Date getDate() throws java.sql.SQLException
ResultGetter
getDate
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic java.sql.Date getDate(java.util.Calendar cal) throws java.sql.SQLException
ResultGetter
getDate
in interface ResultGetter
cal
- - the Calendar
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic double getDouble() throws java.sql.SQLException
ResultGetter
getDouble
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic float getFloat() throws java.sql.SQLException
ResultGetter
getFloat
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic int getInt() throws java.sql.SQLException
ResultGetter
getInt
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic long getLong() throws java.sql.SQLException
ResultGetter
getLong
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic java.lang.Object getObject() throws java.sql.SQLException
ResultGetter
getObject
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic java.lang.Object getObject(java.util.Map map) throws java.sql.SQLException
ResultGetter
getObject
in interface ResultGetter
map
- - the Map
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic java.sql.Ref getRef() throws java.sql.SQLException
ResultGetter
getRef
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic short getShort() throws java.sql.SQLException
ResultGetter
getShort
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic java.lang.String getString() throws java.sql.SQLException
ResultGetter
getString
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic java.sql.Time getTime() throws java.sql.SQLException
ResultGetter
getTime
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic java.sql.Time getTime(java.util.Calendar cal) throws java.sql.SQLException
ResultGetter
getTime
in interface ResultGetter
cal
- - the Calendar
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic java.sql.Timestamp getTimestamp() throws java.sql.SQLException
ResultGetter
getTimestamp
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic java.sql.Timestamp getTimestamp(java.util.Calendar cal) throws java.sql.SQLException
ResultGetter
getTimestamp
in interface ResultGetter
cal
- - the Calendar
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic java.net.URL getURL() throws java.sql.SQLException
ResultGetter
getURL
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic boolean wasNull() throws java.sql.SQLException
ResultGetter
wasNull
in interface ResultGetter
java.sql.SQLException
- - if the underlying result set throws an exceptionpublic java.sql.ResultSet getResultSet()
ResultGetter
getResultSet
in interface ResultGetter
public int getColumnIndex()
ResultGetter
getColumnName
is null.
getColumnIndex
in interface ResultGetter
public java.lang.String getColumnName()
ResultGetter
null
in which case the getColumnIndex
method should be used.
getColumnName
in interface ResultGetter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |