Package org.apache.commons.dbutils
Class BaseResultSetHandler<T>
- java.lang.Object
-
- org.apache.commons.dbutils.BaseResultSetHandler<T>
-
- Type Parameters:
T- the target type the input ResultSet will be converted to.
- All Implemented Interfaces:
ResultSetHandler<T>
public abstract class BaseResultSetHandler<T> extends java.lang.Object implements ResultSetHandler<T>
Extensions of this class convert ResultSets into other objects. According to the DRY principle (Don't Repeat Yourself), repeatingresultSetvariable inside theResultSetHandler.handle(ResultSet)over and over for each iteration can get a little tedious,AbstractResultSetHandlerimplicitly gives users access toResultSet's methods. NOTE This class is NOT thread safe!- Since:
- 1.6
-
-
Field Summary
Fields Modifier and Type Field Description private java.sql.ResultSetresultSetThe adapted ResultSet.
-
Constructor Summary
Constructors Constructor Description BaseResultSetHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected booleanabsolute(int row)protected voidafterLast()protected voidbeforeFirst()protected voidcancelRowUpdates()protected voidclearWarnings()protected voidclose()protected voiddeleteRow()protected intfindColumn(java.lang.String columnLabel)protected booleanfirst()protected java.sql.ResultSetgetAdaptedResultSet()protected java.sql.ArraygetArray(int columnIndex)protected java.sql.ArraygetArray(java.lang.String columnLabel)protected java.io.InputStreamgetAsciiStream(int columnIndex)protected java.io.InputStreamgetAsciiStream(java.lang.String columnLabel)protected java.math.BigDecimalgetBigDecimal(int columnIndex)protected java.math.BigDecimalgetBigDecimal(int columnIndex, int scale)Deprecated.protected java.math.BigDecimalgetBigDecimal(java.lang.String columnLabel)protected java.math.BigDecimalgetBigDecimal(java.lang.String columnLabel, int scale)Deprecated.protected java.io.InputStreamgetBinaryStream(int columnIndex)protected java.io.InputStreamgetBinaryStream(java.lang.String columnLabel)protected java.sql.BlobgetBlob(int columnIndex)protected java.sql.BlobgetBlob(java.lang.String columnLabel)protected booleangetBoolean(int columnIndex)protected booleangetBoolean(java.lang.String columnLabel)protected bytegetByte(int columnIndex)protected bytegetByte(java.lang.String columnLabel)protected byte[]getBytes(int columnIndex)protected byte[]getBytes(java.lang.String columnLabel)protected java.io.ReadergetCharacterStream(int columnIndex)protected java.io.ReadergetCharacterStream(java.lang.String columnLabel)protected java.sql.ClobgetClob(int columnIndex)protected java.sql.ClobgetClob(java.lang.String columnLabel)protected intgetConcurrency()protected java.lang.StringgetCursorName()protected java.sql.DategetDate(int columnIndex)protected java.sql.DategetDate(int columnIndex, java.util.Calendar cal)protected java.sql.DategetDate(java.lang.String columnLabel)protected java.sql.DategetDate(java.lang.String columnLabel, java.util.Calendar cal)protected doublegetDouble(int columnIndex)protected doublegetDouble(java.lang.String columnLabel)protected intgetFetchDirection()protected intgetFetchSize()protected floatgetFloat(int columnIndex)protected floatgetFloat(java.lang.String columnLabel)protected intgetHoldability()protected intgetInt(int columnIndex)protected intgetInt(java.lang.String columnLabel)protected longgetLong(int columnIndex)protected longgetLong(java.lang.String columnLabel)protected java.sql.ResultSetMetaDatagetMetaData()protected java.io.ReadergetNCharacterStream(int columnIndex)protected java.io.ReadergetNCharacterStream(java.lang.String columnLabel)protected java.sql.NClobgetNClob(int columnIndex)protected java.sql.NClobgetNClob(java.lang.String columnLabel)protected java.lang.StringgetNString(int columnIndex)protected java.lang.StringgetNString(java.lang.String columnLabel)protected java.lang.ObjectgetObject(int columnIndex)protected java.lang.ObjectgetObject(int columnIndex, java.util.Map<java.lang.String,java.lang.Class<?>> map)protected java.lang.ObjectgetObject(java.lang.String columnLabel)protected java.lang.ObjectgetObject(java.lang.String columnLabel, java.util.Map<java.lang.String,java.lang.Class<?>> map)protected java.sql.RefgetRef(int columnIndex)protected java.sql.RefgetRef(java.lang.String columnLabel)protected intgetRow()protected java.sql.RowIdgetRowId(int columnIndex)protected java.sql.RowIdgetRowId(java.lang.String columnLabel)protected shortgetShort(int columnIndex)protected shortgetShort(java.lang.String columnLabel)protected java.sql.SQLXMLgetSQLXML(int columnIndex)protected java.sql.SQLXMLgetSQLXML(java.lang.String columnLabel)protected java.sql.StatementgetStatement()protected java.lang.StringgetString(int columnIndex)protected java.lang.StringgetString(java.lang.String columnLabel)protected java.sql.TimegetTime(int columnIndex)protected java.sql.TimegetTime(int columnIndex, java.util.Calendar cal)protected java.sql.TimegetTime(java.lang.String columnLabel)protected java.sql.TimegetTime(java.lang.String columnLabel, java.util.Calendar cal)protected java.sql.TimestampgetTimestamp(int columnIndex)protected java.sql.TimestampgetTimestamp(int columnIndex, java.util.Calendar cal)protected java.sql.TimestampgetTimestamp(java.lang.String columnLabel)protected java.sql.TimestampgetTimestamp(java.lang.String columnLabel, java.util.Calendar cal)protected intgetType()protected java.io.InputStreamgetUnicodeStream(int columnIndex)Deprecated.protected java.io.InputStreamgetUnicodeStream(java.lang.String columnLabel)Deprecated.protected java.net.URLgetURL(int columnIndex)protected java.net.URLgetURL(java.lang.String columnLabel)protected java.sql.SQLWarninggetWarnings()protected abstract Thandle()Turn theResultSetinto an Object.Thandle(java.sql.ResultSet rs)Turn theResultSetinto an Object.protected voidinsertRow()protected booleanisAfterLast()protected booleanisBeforeFirst()protected booleanisClosed()protected booleanisFirst()protected booleanisLast()protected booleanisWrapperFor(java.lang.Class<?> iface)protected booleanlast()protected voidmoveToCurrentRow()protected voidmoveToInsertRow()protected booleannext()protected booleanprevious()protected voidrefreshRow()protected booleanrelative(int rows)protected booleanrowDeleted()protected booleanrowInserted()protected booleanrowUpdated()protected voidsetFetchDirection(int direction)protected voidsetFetchSize(int rows)protected <E> Eunwrap(java.lang.Class<E> iface)protected voidupdateArray(int columnIndex, java.sql.Array x)protected voidupdateArray(java.lang.String columnLabel, java.sql.Array x)protected voidupdateAsciiStream(int columnIndex, java.io.InputStream x)protected voidupdateAsciiStream(int columnIndex, java.io.InputStream x, int length)protected voidupdateAsciiStream(int columnIndex, java.io.InputStream x, long length)protected voidupdateAsciiStream(java.lang.String columnLabel, java.io.InputStream x)protected voidupdateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, int length)protected voidupdateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, long length)protected voidupdateBigDecimal(int columnIndex, java.math.BigDecimal x)protected voidupdateBigDecimal(java.lang.String columnLabel, java.math.BigDecimal x)protected voidupdateBinaryStream(int columnIndex, java.io.InputStream x)protected voidupdateBinaryStream(int columnIndex, java.io.InputStream x, int length)protected voidupdateBinaryStream(int columnIndex, java.io.InputStream x, long length)protected voidupdateBinaryStream(java.lang.String columnLabel, java.io.InputStream x)protected voidupdateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, int length)protected voidupdateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, long length)protected voidupdateBlob(int columnIndex, java.io.InputStream inputStream)protected voidupdateBlob(int columnIndex, java.io.InputStream inputStream, long length)protected voidupdateBlob(int columnIndex, java.sql.Blob x)protected voidupdateBlob(java.lang.String columnLabel, java.io.InputStream inputStream)protected voidupdateBlob(java.lang.String columnLabel, java.io.InputStream inputStream, long length)protected voidupdateBlob(java.lang.String columnLabel, java.sql.Blob x)protected voidupdateBoolean(int columnIndex, boolean x)protected voidupdateBoolean(java.lang.String columnLabel, boolean x)protected voidupdateByte(int columnIndex, byte x)protected voidupdateByte(java.lang.String columnLabel, byte x)protected voidupdateBytes(int columnIndex, byte[] x)protected voidupdateBytes(java.lang.String columnLabel, byte[] x)protected voidupdateCharacterStream(int columnIndex, java.io.Reader x)protected voidupdateCharacterStream(int columnIndex, java.io.Reader x, int length)protected voidupdateCharacterStream(int columnIndex, java.io.Reader x, long length)protected voidupdateCharacterStream(java.lang.String columnLabel, java.io.Reader reader)protected voidupdateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, int length)protected voidupdateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length)protected voidupdateClob(int columnIndex, java.io.Reader reader)protected voidupdateClob(int columnIndex, java.io.Reader reader, long length)protected voidupdateClob(int columnIndex, java.sql.Clob x)protected voidupdateClob(java.lang.String columnLabel, java.io.Reader reader)protected voidupdateClob(java.lang.String columnLabel, java.io.Reader reader, long length)protected voidupdateClob(java.lang.String columnLabel, java.sql.Clob x)protected voidupdateDate(int columnIndex, java.sql.Date x)protected voidupdateDate(java.lang.String columnLabel, java.sql.Date x)protected voidupdateDouble(int columnIndex, double x)protected voidupdateDouble(java.lang.String columnLabel, double x)protected voidupdateFloat(int columnIndex, float x)protected voidupdateFloat(java.lang.String columnLabel, float x)protected voidupdateInt(int columnIndex, int x)protected voidupdateInt(java.lang.String columnLabel, int x)protected voidupdateLong(int columnIndex, long x)protected voidupdateLong(java.lang.String columnLabel, long x)protected voidupdateNCharacterStream(int columnIndex, java.io.Reader x)protected voidupdateNCharacterStream(int columnIndex, java.io.Reader x, long length)protected voidupdateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader)protected voidupdateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length)protected voidupdateNClob(int columnIndex, java.io.Reader reader)protected voidupdateNClob(int columnIndex, java.io.Reader reader, long length)protected voidupdateNClob(int columnIndex, java.sql.NClob nClob)protected voidupdateNClob(java.lang.String columnLabel, java.io.Reader reader)protected voidupdateNClob(java.lang.String columnLabel, java.io.Reader reader, long length)protected voidupdateNClob(java.lang.String columnLabel, java.sql.NClob nClob)protected voidupdateNString(int columnIndex, java.lang.String nString)protected voidupdateNString(java.lang.String columnLabel, java.lang.String nString)protected voidupdateNull(int columnIndex)protected voidupdateNull(java.lang.String columnLabel)protected voidupdateObject(int columnIndex, java.lang.Object x)protected voidupdateObject(int columnIndex, java.lang.Object x, int scaleOrLength)protected voidupdateObject(java.lang.String columnLabel, java.lang.Object x)protected voidupdateObject(java.lang.String columnLabel, java.lang.Object x, int scaleOrLength)protected voidupdateRef(int columnIndex, java.sql.Ref x)protected voidupdateRef(java.lang.String columnLabel, java.sql.Ref x)protected voidupdateRow()protected voidupdateRowId(int columnIndex, java.sql.RowId x)protected voidupdateRowId(java.lang.String columnLabel, java.sql.RowId x)protected voidupdateShort(int columnIndex, short x)protected voidupdateShort(java.lang.String columnLabel, short x)protected voidupdateSQLXML(int columnIndex, java.sql.SQLXML xmlObject)protected voidupdateSQLXML(java.lang.String columnLabel, java.sql.SQLXML xmlObject)protected voidupdateString(int columnIndex, java.lang.String x)protected voidupdateString(java.lang.String columnLabel, java.lang.String x)protected voidupdateTime(int columnIndex, java.sql.Time x)protected voidupdateTime(java.lang.String columnLabel, java.sql.Time x)protected voidupdateTimestamp(int columnIndex, java.sql.Timestamp x)protected voidupdateTimestamp(java.lang.String columnLabel, java.sql.Timestamp x)protected booleanwasNull()
-
-
-
Method Detail
-
absolute
protected final boolean absolute(int row) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
afterLast
protected final void afterLast() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
beforeFirst
protected final void beforeFirst() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
cancelRowUpdates
protected final void cancelRowUpdates() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
clearWarnings
protected final void clearWarnings() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
close
protected final void close() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
deleteRow
protected final void deleteRow() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
findColumn
protected final int findColumn(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
first
protected final boolean first() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getAdaptedResultSet
protected final java.sql.ResultSet getAdaptedResultSet()
-
getArray
protected final java.sql.Array getArray(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getArray
protected final java.sql.Array getArray(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getAsciiStream
protected final java.io.InputStream getAsciiStream(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getAsciiStream
protected final java.io.InputStream getAsciiStream(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getBigDecimal
protected final java.math.BigDecimal getBigDecimal(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getBigDecimal
@Deprecated protected final java.math.BigDecimal getBigDecimal(int columnIndex, int scale) throws java.sql.SQLExceptionDeprecated.- Throws:
java.sql.SQLException
-
getBigDecimal
protected final java.math.BigDecimal getBigDecimal(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getBigDecimal
@Deprecated protected final java.math.BigDecimal getBigDecimal(java.lang.String columnLabel, int scale) throws java.sql.SQLExceptionDeprecated.- Throws:
java.sql.SQLException
-
getBinaryStream
protected final java.io.InputStream getBinaryStream(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getBinaryStream
protected final java.io.InputStream getBinaryStream(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getBlob
protected final java.sql.Blob getBlob(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getBlob
protected final java.sql.Blob getBlob(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getBoolean
protected final boolean getBoolean(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getBoolean
protected final boolean getBoolean(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getByte
protected final byte getByte(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getByte
protected final byte getByte(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getBytes
protected final byte[] getBytes(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getBytes
protected final byte[] getBytes(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getCharacterStream
protected final java.io.Reader getCharacterStream(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getCharacterStream
protected final java.io.Reader getCharacterStream(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getClob
protected final java.sql.Clob getClob(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getClob
protected final java.sql.Clob getClob(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getConcurrency
protected final int getConcurrency() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getCursorName
protected final java.lang.String getCursorName() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getDate
protected final java.sql.Date getDate(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getDate
protected final java.sql.Date getDate(int columnIndex, java.util.Calendar cal) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getDate
protected final java.sql.Date getDate(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getDate
protected final java.sql.Date getDate(java.lang.String columnLabel, java.util.Calendar cal) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getDouble
protected final double getDouble(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getDouble
protected final double getDouble(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getFetchDirection
protected final int getFetchDirection() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getFetchSize
protected final int getFetchSize() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getFloat
protected final float getFloat(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getFloat
protected final float getFloat(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getHoldability
protected final int getHoldability() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getInt
protected final int getInt(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getInt
protected final int getInt(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getLong
protected final long getLong(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getLong
protected final long getLong(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getMetaData
protected final java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getNCharacterStream
protected final java.io.Reader getNCharacterStream(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getNCharacterStream
protected final java.io.Reader getNCharacterStream(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getNClob
protected final java.sql.NClob getNClob(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getNClob
protected final java.sql.NClob getNClob(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getNString
protected final java.lang.String getNString(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getNString
protected final java.lang.String getNString(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getObject
protected final java.lang.Object getObject(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getObject
protected final java.lang.Object getObject(int columnIndex, java.util.Map<java.lang.String,java.lang.Class<?>> map) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getObject
protected final java.lang.Object getObject(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getObject
protected final java.lang.Object getObject(java.lang.String columnLabel, java.util.Map<java.lang.String,java.lang.Class<?>> map) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getRef
protected final java.sql.Ref getRef(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getRef
protected final java.sql.Ref getRef(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getRow
protected final int getRow() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getRowId
protected final java.sql.RowId getRowId(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getRowId
protected final java.sql.RowId getRowId(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getShort
protected final short getShort(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getShort
protected final short getShort(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getSQLXML
protected final java.sql.SQLXML getSQLXML(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getSQLXML
protected final java.sql.SQLXML getSQLXML(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getStatement
protected final java.sql.Statement getStatement() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getString
protected final java.lang.String getString(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getString
protected final java.lang.String getString(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getTime
protected final java.sql.Time getTime(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getTime
protected final java.sql.Time getTime(int columnIndex, java.util.Calendar cal) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getTime
protected final java.sql.Time getTime(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getTime
protected final java.sql.Time getTime(java.lang.String columnLabel, java.util.Calendar cal) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getTimestamp
protected final java.sql.Timestamp getTimestamp(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getTimestamp
protected final java.sql.Timestamp getTimestamp(int columnIndex, java.util.Calendar cal) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getTimestamp
protected final java.sql.Timestamp getTimestamp(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getTimestamp
protected final java.sql.Timestamp getTimestamp(java.lang.String columnLabel, java.util.Calendar cal) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getType
protected final int getType() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getUnicodeStream
@Deprecated protected final java.io.InputStream getUnicodeStream(int columnIndex) throws java.sql.SQLExceptionDeprecated.- Throws:
java.sql.SQLException
-
getUnicodeStream
@Deprecated protected final java.io.InputStream getUnicodeStream(java.lang.String columnLabel) throws java.sql.SQLExceptionDeprecated.- Throws:
java.sql.SQLException
-
getURL
protected final java.net.URL getURL(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getURL
protected final java.net.URL getURL(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getWarnings
protected final java.sql.SQLWarning getWarnings() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
handle
protected abstract T handle() throws java.sql.SQLException
Turn theResultSetinto an Object.- Returns:
- An Object initialized with
ResultSetdata - Throws:
java.sql.SQLException- if a database access error occurs- See Also:
ResultSetHandler.handle(ResultSet)
-
handle
public final T handle(java.sql.ResultSet rs) throws java.sql.SQLException
Turn theResultSetinto an Object.- Specified by:
handlein interfaceResultSetHandler<T>- Parameters:
rs- TheResultSetto handle. It has not been touched before being passed to this method.- Returns:
- An Object initialized with
ResultSetdata. It is legal for implementations to returnnullif theResultSetcontained 0 rows. - Throws:
java.sql.SQLException- if a database access error occurs
-
insertRow
protected final void insertRow() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
isAfterLast
protected final boolean isAfterLast() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
isBeforeFirst
protected final boolean isBeforeFirst() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
isClosed
protected final boolean isClosed() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
isFirst
protected final boolean isFirst() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
isLast
protected final boolean isLast() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
isWrapperFor
protected final boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
last
protected final boolean last() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
moveToCurrentRow
protected final void moveToCurrentRow() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
moveToInsertRow
protected final void moveToInsertRow() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
next
protected final boolean next() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
previous
protected final boolean previous() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
refreshRow
protected final void refreshRow() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
relative
protected final boolean relative(int rows) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
rowDeleted
protected final boolean rowDeleted() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
rowInserted
protected final boolean rowInserted() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
rowUpdated
protected final boolean rowUpdated() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setFetchDirection
protected final void setFetchDirection(int direction) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setFetchSize
protected final void setFetchSize(int rows) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
unwrap
protected final <E> E unwrap(java.lang.Class<E> iface) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateArray
protected final void updateArray(int columnIndex, java.sql.Array x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateArray
protected final void updateArray(java.lang.String columnLabel, java.sql.Array x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateAsciiStream
protected final void updateAsciiStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateAsciiStream
protected final void updateAsciiStream(int columnIndex, java.io.InputStream x, int length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateAsciiStream
protected final void updateAsciiStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateAsciiStream
protected final void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateAsciiStream
protected final void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, int length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateAsciiStream
protected final void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBigDecimal
protected final void updateBigDecimal(int columnIndex, java.math.BigDecimal x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBigDecimal
protected final void updateBigDecimal(java.lang.String columnLabel, java.math.BigDecimal x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBinaryStream
protected final void updateBinaryStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBinaryStream
protected final void updateBinaryStream(int columnIndex, java.io.InputStream x, int length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBinaryStream
protected final void updateBinaryStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBinaryStream
protected final void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBinaryStream
protected final void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, int length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBinaryStream
protected final void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBlob
protected final void updateBlob(int columnIndex, java.sql.Blob x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBlob
protected final void updateBlob(int columnIndex, java.io.InputStream inputStream) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBlob
protected final void updateBlob(int columnIndex, java.io.InputStream inputStream, long length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBlob
protected final void updateBlob(java.lang.String columnLabel, java.sql.Blob x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBlob
protected final void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBlob
protected final void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream, long length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBoolean
protected final void updateBoolean(int columnIndex, boolean x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBoolean
protected final void updateBoolean(java.lang.String columnLabel, boolean x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateByte
protected final void updateByte(int columnIndex, byte x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateByte
protected final void updateByte(java.lang.String columnLabel, byte x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBytes
protected final void updateBytes(int columnIndex, byte[] x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateBytes
protected final void updateBytes(java.lang.String columnLabel, byte[] x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateCharacterStream
protected final void updateCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateCharacterStream
protected final void updateCharacterStream(int columnIndex, java.io.Reader x, int length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateCharacterStream
protected final void updateCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateCharacterStream
protected final void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateCharacterStream
protected final void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, int length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateCharacterStream
protected final void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateClob
protected final void updateClob(int columnIndex, java.sql.Clob x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateClob
protected final void updateClob(int columnIndex, java.io.Reader reader) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateClob
protected final void updateClob(int columnIndex, java.io.Reader reader, long length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateClob
protected final void updateClob(java.lang.String columnLabel, java.sql.Clob x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateClob
protected final void updateClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateClob
protected final void updateClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateDate
protected final void updateDate(int columnIndex, java.sql.Date x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateDate
protected final void updateDate(java.lang.String columnLabel, java.sql.Date x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateDouble
protected final void updateDouble(int columnIndex, double x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateDouble
protected final void updateDouble(java.lang.String columnLabel, double x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateFloat
protected final void updateFloat(int columnIndex, float x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateFloat
protected final void updateFloat(java.lang.String columnLabel, float x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateInt
protected final void updateInt(int columnIndex, int x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateInt
protected final void updateInt(java.lang.String columnLabel, int x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateLong
protected final void updateLong(int columnIndex, long x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateLong
protected final void updateLong(java.lang.String columnLabel, long x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateNCharacterStream
protected final void updateNCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateNCharacterStream
protected final void updateNCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateNCharacterStream
protected final void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateNCharacterStream
protected final void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateNClob
protected final void updateNClob(int columnIndex, java.sql.NClob nClob) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateNClob
protected final void updateNClob(int columnIndex, java.io.Reader reader) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateNClob
protected final void updateNClob(int columnIndex, java.io.Reader reader, long length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateNClob
protected final void updateNClob(java.lang.String columnLabel, java.sql.NClob nClob) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateNClob
protected final void updateNClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateNClob
protected final void updateNClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateNString
protected final void updateNString(int columnIndex, java.lang.String nString) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateNString
protected final void updateNString(java.lang.String columnLabel, java.lang.String nString) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateNull
protected final void updateNull(int columnIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateNull
protected final void updateNull(java.lang.String columnLabel) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateObject
protected final void updateObject(int columnIndex, java.lang.Object x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateObject
protected final void updateObject(int columnIndex, java.lang.Object x, int scaleOrLength) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateObject
protected final void updateObject(java.lang.String columnLabel, java.lang.Object x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateObject
protected final void updateObject(java.lang.String columnLabel, java.lang.Object x, int scaleOrLength) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateRef
protected final void updateRef(int columnIndex, java.sql.Ref x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateRef
protected final void updateRef(java.lang.String columnLabel, java.sql.Ref x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateRow
protected final void updateRow() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateRowId
protected final void updateRowId(int columnIndex, java.sql.RowId x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateRowId
protected final void updateRowId(java.lang.String columnLabel, java.sql.RowId x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateShort
protected final void updateShort(int columnIndex, short x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateShort
protected final void updateShort(java.lang.String columnLabel, short x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateSQLXML
protected final void updateSQLXML(int columnIndex, java.sql.SQLXML xmlObject) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateSQLXML
protected final void updateSQLXML(java.lang.String columnLabel, java.sql.SQLXML xmlObject) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateString
protected final void updateString(int columnIndex, java.lang.String x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateString
protected final void updateString(java.lang.String columnLabel, java.lang.String x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateTime
protected final void updateTime(int columnIndex, java.sql.Time x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateTime
protected final void updateTime(java.lang.String columnLabel, java.sql.Time x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateTimestamp
protected final void updateTimestamp(int columnIndex, java.sql.Timestamp x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateTimestamp
protected final void updateTimestamp(java.lang.String columnLabel, java.sql.Timestamp x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
wasNull
protected final boolean wasNull() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
-