A ResultSet delegate, responsible for locally caching the columnName-to-columnIndex
resolution that has been found to be inefficient in a few vendor's drivers (i.e., Oracle
and Postgres).
absolute
public boolean absolute(int row)
throws SQLException
afterLast
public void afterLast()
throws SQLException
beforeFirst
public void beforeFirst()
throws SQLException
cancelRowUpdates
public void cancelRowUpdates()
throws SQLException
clearWarnings
public void clearWarnings()
throws SQLException
close
public void close()
throws SQLException
deleteRow
public void deleteRow()
throws SQLException
findColumn
public int findColumn(String columnName)
throws SQLException
Overridden version to utilize local caching of the column indexes by name
to improve performance for those drivers which are known to not support
such caching by themselves.
This implementation performs the caching based on the upper case version
of the given column name.
columnName
- The column name to resolve into an index.
- The column index corresponding to the given column name.
first
public boolean first()
throws SQLException
getArray
public Array getArray(String colName)
throws SQLException
getArray
public Array getArray(int columnIndex)
throws SQLException
getAsciiStream
public InputStream getAsciiStream(String columnName)
throws SQLException
getAsciiStream
public InputStream getAsciiStream(int columnIndex)
throws SQLException
getBigDecimal
public BigDecimal getBigDecimal(String columnName)
throws SQLException
getBigDecimal
public BigDecimal getBigDecimal(String columnName,
int scale)
throws SQLException
getBigDecimal
public BigDecimal getBigDecimal(int columnIndex)
throws SQLException
getBigDecimal
public BigDecimal getBigDecimal(int columnIndex,
int scale)
throws SQLException
getBinaryStream
public InputStream getBinaryStream(String columnName)
throws SQLException
getBinaryStream
public InputStream getBinaryStream(int columnIndex)
throws SQLException
getBlob
public Blob getBlob(String columnName)
throws SQLException
getBlob
public Blob getBlob(int columnIndex)
throws SQLException
getBoolean
public boolean getBoolean(String columnName)
throws SQLException
getBoolean
public boolean getBoolean(int columnIndex)
throws SQLException
getByte
public byte getByte(String columnName)
throws SQLException
getByte
public byte getByte(int columnIndex)
throws SQLException
getBytes
public byte[] getBytes(String columnName)
throws SQLException
getBytes
public byte[] getBytes(int columnIndex)
throws SQLException
getCharacterStream
public Reader getCharacterStream(String columnName)
throws SQLException
getCharacterStream
public Reader getCharacterStream(int columnIndex)
throws SQLException
getClob
public Clob getClob(String columnName)
throws SQLException
getClob
public Clob getClob(int columnIndex)
throws SQLException
getConcurrency
public int getConcurrency()
throws SQLException
getCursorName
public String getCursorName()
throws SQLException
getDate
public Date getDate(String columnName)
throws SQLException
getDate
public Date getDate(String columnName,
Calendar cal)
throws SQLException
getDate
public Date getDate(int columnIndex)
throws SQLException
getDate
public Date getDate(int columnIndex,
Calendar cal)
throws SQLException
getDouble
public double getDouble(String columnName)
throws SQLException
getDouble
public double getDouble(int columnIndex)
throws SQLException
getFetchDirection
public int getFetchDirection()
throws SQLException
getFetchSize
public int getFetchSize()
throws SQLException
getFloat
public float getFloat(String columnName)
throws SQLException
getFloat
public float getFloat(int columnIndex)
throws SQLException
getInt
public int getInt(String columnName)
throws SQLException
getInt
public int getInt(int columnIndex)
throws SQLException
getLong
public long getLong(String columnName)
throws SQLException
getLong
public long getLong(int columnIndex)
throws SQLException
getMetaData
public ResultSetMetaData getMetaData()
throws SQLException
getObject
public Object getObject(String columnName)
throws SQLException
getObject
public Object getObject(String columnName,
Map map)
throws SQLException
getObject
public Object getObject(int columnIndex)
throws SQLException
getObject
public Object getObject(int columnIndex,
Map map)
throws SQLException
getRef
public Ref getRef(String columnName)
throws SQLException
getRef
public Ref getRef(int columnIndex)
throws SQLException
getRow
public int getRow()
throws SQLException
getShort
public short getShort(String columnName)
throws SQLException
getShort
public short getShort(int columnIndex)
throws SQLException
getStatement
public Statement getStatement()
throws SQLException
getString
public String getString(String columnName)
throws SQLException
getString
public String getString(int columnIndex)
throws SQLException
getTime
public Time getTime(String columnName)
throws SQLException
getTime
public Time getTime(String columnName,
Calendar cal)
throws SQLException
getTime
public Time getTime(int columnIndex)
throws SQLException
getTime
public Time getTime(int columnIndex,
Calendar cal)
throws SQLException
getTimestamp
public Timestamp getTimestamp(String columnName)
throws SQLException
getTimestamp
public Timestamp getTimestamp(String columnName,
Calendar cal)
throws SQLException
getTimestamp
public Timestamp getTimestamp(int columnIndex)
throws SQLException
getTimestamp
public Timestamp getTimestamp(int columnIndex,
Calendar cal)
throws SQLException
getType
public int getType()
throws SQLException
getURL
public URL getURL(String columnName)
throws SQLException
getURL
public URL getURL(int columnIndex)
throws SQLException
getUnicodeStream
public InputStream getUnicodeStream(String columnName)
throws SQLException
getUnicodeStream
public InputStream getUnicodeStream(int columnIndex)
throws SQLException
getWarnings
public SQLWarning getWarnings()
throws SQLException
insertRow
public void insertRow()
throws SQLException
isAfterLast
public boolean isAfterLast()
throws SQLException
isBeforeFirst
public boolean isBeforeFirst()
throws SQLException
isFirst
public boolean isFirst()
throws SQLException
isLast
public boolean isLast()
throws SQLException
last
public boolean last()
throws SQLException
moveToCurrentRow
public void moveToCurrentRow()
throws SQLException
moveToInsertRow
public void moveToInsertRow()
throws SQLException
next
public boolean next()
throws SQLException
previous
public boolean previous()
throws SQLException
refreshRow
public void refreshRow()
throws SQLException
relative
public boolean relative(int rows)
throws SQLException
rowDeleted
public boolean rowDeleted()
throws SQLException
rowInserted
public boolean rowInserted()
throws SQLException
rowUpdated
public boolean rowUpdated()
throws SQLException
setFetchDirection
public void setFetchDirection(int direction)
throws SQLException
setFetchSize
public void setFetchSize(int rows)
throws SQLException
updateArray
public void updateArray(String columnName,
Array x)
throws SQLException
updateArray
public void updateArray(int columnIndex,
Array x)
throws SQLException
updateAsciiStream
public void updateAsciiStream(String columnName,
InputStream x,
int length)
throws SQLException
updateAsciiStream
public void updateAsciiStream(int columnIndex,
InputStream x,
int length)
throws SQLException
updateBigDecimal
public void updateBigDecimal(String columnName,
BigDecimal x)
throws SQLException
updateBigDecimal
public void updateBigDecimal(int columnIndex,
BigDecimal x)
throws SQLException
updateBinaryStream
public void updateBinaryStream(String columnName,
InputStream x,
int length)
throws SQLException
updateBinaryStream
public void updateBinaryStream(int columnIndex,
InputStream x,
int length)
throws SQLException
updateBlob
public void updateBlob(String columnName,
Blob x)
throws SQLException
updateBlob
public void updateBlob(int columnIndex,
Blob x)
throws SQLException
updateBoolean
public void updateBoolean(String columnName,
boolean x)
throws SQLException
updateBoolean
public void updateBoolean(int columnIndex,
boolean x)
throws SQLException
updateByte
public void updateByte(String columnName,
byte x)
throws SQLException
updateByte
public void updateByte(int columnIndex,
byte x)
throws SQLException
updateBytes
public void updateBytes(String columnName,
byte[] x)
throws SQLException
updateBytes
public void updateBytes(int columnIndex,
byte[] x)
throws SQLException
updateCharacterStream
public void updateCharacterStream(String columnName,
Reader x,
int length)
throws SQLException
updateCharacterStream
public void updateCharacterStream(int columnIndex,
Reader x,
int length)
throws SQLException
updateClob
public void updateClob(String columnName,
Clob x)
throws SQLException
updateClob
public void updateClob(int columnIndex,
Clob x)
throws SQLException
updateDate
public void updateDate(String columnName,
Date x)
throws SQLException
updateDate
public void updateDate(int columnIndex,
Date x)
throws SQLException
updateDouble
public void updateDouble(String columnName,
double x)
throws SQLException
updateDouble
public void updateDouble(int columnIndex,
double x)
throws SQLException
updateFloat
public void updateFloat(String columnName,
float x)
throws SQLException
updateFloat
public void updateFloat(int columnIndex,
float x)
throws SQLException
updateInt
public void updateInt(String columnName,
int x)
throws SQLException
updateInt
public void updateInt(int columnIndex,
int x)
throws SQLException
updateLong
public void updateLong(String columnName,
long x)
throws SQLException
updateLong
public void updateLong(int columnIndex,
long x)
throws SQLException
updateNull
public void updateNull(String columnName)
throws SQLException
updateNull
public void updateNull(int columnIndex)
throws SQLException
updateObject
public void updateObject(String columnName,
Object x)
throws SQLException
updateObject
public void updateObject(String columnName,
Object x,
int scale)
throws SQLException
updateObject
public void updateObject(int columnIndex,
Object x)
throws SQLException
updateObject
public void updateObject(int columnIndex,
Object x,
int scale)
throws SQLException
updateRef
public void updateRef(String columnName,
Ref x)
throws SQLException
updateRef
public void updateRef(int columnIndex,
Ref x)
throws SQLException
updateRow
public void updateRow()
throws SQLException
updateShort
public void updateShort(String columnName,
short x)
throws SQLException
updateShort
public void updateShort(int columnIndex,
short x)
throws SQLException
updateString
public void updateString(String columnName,
String x)
throws SQLException
updateString
public void updateString(int columnIndex,
String x)
throws SQLException
updateTime
public void updateTime(String columnName,
Time x)
throws SQLException
updateTime
public void updateTime(int columnIndex,
Time x)
throws SQLException
updateTimestamp
public void updateTimestamp(String columnName,
Timestamp x)
throws SQLException
updateTimestamp
public void updateTimestamp(int columnIndex,
Timestamp x)
throws SQLException
wasNull
public boolean wasNull()
throws SQLException