org.eigenbase.util14
Class AbstractResultSet

java.lang.Object
  extended by org.eigenbase.jdbc4.Unwrappable
      extended by org.eigenbase.util14.AbstractResultSet
All Implemented Interfaces:
ResultSet
Direct Known Subclasses:
AbstractIterResultSet, FennelTupleResultSet

public abstract class AbstractResultSet
extends Unwrappable
implements ResultSet

AbstractResultSet provides a abstract implementation for a TYPE_FORWARD_ONLY, CONCUR_READ_ONLY ResultSet. This class is JDK 1.4 compatible.

Since:
Jan 8, 2006
Version:
$Id: //open/dev/farrago/src/org/eigenbase/util14/AbstractResultSet.java#21 $
Author:
angel

Field Summary
(package private) static TimeZone defaultZone
           
protected  int fetchSize
           
(package private) static TimeZone gmtZone
           
protected  int maxRows
           
protected  boolean wasNull
           
 
Fields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
 
Constructor Summary
AbstractResultSet()
           
 
Method Summary
 boolean absolute(int row)
           
 void afterLast()
           
 void beforeFirst()
           
 void cancelRowUpdates()
           
 void clearWarnings()
          After this call getWarnings returns null until a new warning is reported for this ResultSet.
 void close()
           
 void deleteRow()
           
 int findColumn(String columnName)
          Map a Resultset column name to a ResultSet column index.
 boolean first()
           
 Array getArray(int columnIndex)
          Get the value of a column in the current row as an Array object
 Array getArray(String columnName)
          Get the value of a column in the current row as an Array object
 InputStream getAsciiStream(int columnIndex)
          A column value can be retrieved as a stream of ASCII characters and then read in chunks from the stream.
 InputStream getAsciiStream(String columnName)
          A column value can be retrieved as a stream of ASCII characters and then read in chunks from the stream.
 BigDecimal getBigDecimal(int columnIndex)
          Get the value of a column in the current row as a java.lang.BigDecimal object.
 BigDecimal getBigDecimal(int columnIndex, int scale)
          Deprecated.  
 BigDecimal getBigDecimal(String columnName)
          Get the value of a column in the current row as a java.lang.BigDecimal object.
 BigDecimal getBigDecimal(String columnName, int scale)
          Deprecated.  
 InputStream getBinaryStream(int columnIndex)
          A column value can be retrieved as a stream of uninterpreted bytes and then read in chunks from the stream.
 InputStream getBinaryStream(String columnName)
          A column value can be retrieved as a stream of uninterpreted bytes and then read in chunks from the stream.
 Blob getBlob(int columnIndex)
          Get the value of a column in the current row as a java.sql.Blob object
 Blob getBlob(String columnName)
          Get the value of a column in the current row as a java.sql.Blob object
 boolean getBoolean(int columnIndex)
          Get the value of a column in the current row as a Java boolean.
 boolean getBoolean(String columnName)
          Get the value of a column in the current row as a Java boolean.
 byte getByte(int columnIndex)
          Get the value of a column in the current row as a Java byte.
 byte getByte(String columnName)
          Get the value of a column in the current row as a Java byte.
 byte[] getBytes(int columnIndex)
          Get the value of a column in the current row as a Java byte array.
 byte[] getBytes(String columnName)
          Get the value of a column in the current row as a Java byte array.
 Reader getCharacterStream(int columnIndex)
          A column value can be retrieved as a stream of characters and then read in chunks from the stream.
 Reader getCharacterStream(String columnName)
          A column value can be retrieved as a stream of characters and then read in chunks from the stream.
 Clob getClob(int columnIndex)
          Get the value of a column in the current row as a java.sql.Clob object
 Clob getClob(String columnName)
          Get the value of a column in the current row as a java.sql.Clob object
 int getConcurrency()
           
 String getCursorName()
          Get the name of the SQL cursor used by this ResultSet.
 Date getDate(int columnIndex)
          Get the value of a column in the current row as a java.sql.Date object.
 Date getDate(int columnIndex, Calendar cal)
          Get the value of a column in the current row as a java.sql.Date object.
 Date getDate(String columnName)
          Get the value of a column in the current row as a java.sql.Date object.
 Date getDate(String columnName, Calendar cal)
          Get the value of a column in the current row as a java.sql.Date object.
 double getDouble(int columnIndex)
          Get the value of a column in the current row as a Java double.
 double getDouble(String columnName)
          Get the value of a column in the current row as a Java double.
 int getFetchDirection()
           
 int getFetchSize()
           
 float getFloat(int columnIndex)
          Get the value of a column in the current row as a Java float.
 float getFloat(String columnName)
          Get the value of a column in the current row as a Java float.
 int getHoldability()
           
 int getInt(int columnIndex)
          Get the value of a column in the current row as a Java int.
 int getInt(String columnName)
          Get the value of a column in the current row as a Java int.
 long getLong(int columnIndex)
          Get the value of a column in the current row as a Java long.
 long getLong(String columnName)
          Get the value of a column in the current row as a Java long.
 Reader getNCharacterStream(int columnIndex)
           
 Reader getNCharacterStream(String columnName)
           
 NClob getNClob(int columnIndex)
           
 NClob getNClob(String columnName)
           
 String getNString(int columnIndex)
           
 String getNString(String columnName)
           
 Object getObject(int columnIndex)
          Get the value of a column in the current row as a Java object.
 Object getObject(int columnIndex, Map map)
          Get the value of a column in the current row as a Java object.
 Object getObject(String columnName)
          Get the value of a column in the current row as a Java object.
 Object getObject(String columnName, Map map)
          Get the value of a column in the current row as a Java object.
protected abstract  Object getRaw(int columnIndex)
          Returns the raw value of a column as an object.
protected  Object getRaw(String columnName)
          Returns the raw value of a column as an object.
 Ref getRef(int columnIndex)
          Get the value of a column in the current row as a java.sql.Ref object
 Ref getRef(String columnName)
          Get the value of a column in the current row as a java.sql.Ref object
 int getRow()
           
 RowId getRowId(int columnIndex)
           
 RowId getRowId(String columnName)
           
 short getShort(int columnIndex)
          Get the value of a column in the current row as a Java short.
 short getShort(String columnName)
          Get the value of a column in the current row as a Java short.
 SQLXML getSQLXML(int columnIndex)
           
 SQLXML getSQLXML(String columnName)
           
 Statement getStatement()
           
 String getString(int columnIndex)
          Get the value of a column in the current row as a Java String.
 String getString(String columnName)
          Get the value of a column in the current row as a Java String.
 Time getTime(int columnIndex)
          Get the value of a column in the current row as a java.sql.Time object.
 Time getTime(int columnIndex, Calendar cal)
          Get the value of a column in the current row as a java.sql.Time object.
 Time getTime(String columnName)
          Get the value of a column in the current row as a java.sql.Time object.
 Time getTime(String columnName, Calendar cal)
          Get the value of a column in the current row as a java.sql.Time object.
 Timestamp getTimestamp(int columnIndex)
           
 Timestamp getTimestamp(int columnIndex, Calendar cal)
          Get the value of a column in the current row as a java.sql.Timestamp object.
 Timestamp getTimestamp(String columnName)
          Get the value of a column in the current row as a java.sql.Timestamp object.
 Timestamp getTimestamp(String columnName, Calendar cal)
          Get the value of a column in the current row as a java.sql.Timestamp object.
 int getType()
           
 InputStream getUnicodeStream(int columnIndex)
          Deprecated.  
 InputStream getUnicodeStream(String columnName)
          Deprecated.  
 URL getURL(int columnIndex)
          Get the value of a column in the current row as a java.net.URL object
 URL getURL(String columnName)
          Get the value of a column in the current row as a java.net.URL object
 SQLWarning getWarnings()
          The first warning reported by calls on this ResultSet is returned.
 void insertRow()
           
 boolean isAfterLast()
           
 boolean isBeforeFirst()
           
 boolean isClosed()
           
 boolean isFirst()
           
 boolean isLast()
           
 boolean last()
           
 void moveToCurrentRow()
           
 void moveToInsertRow()
           
protected  SQLException newConversionError(Object o, Class clazz)
           
protected  SQLException newConversionError(Object o, String className)
           
protected  SQLException newDirectionError()
           
protected  SQLException newFetchError(Throwable e)
           
protected  SQLException newUpdatabilityError()
           
 boolean previous()
           
 void refreshRow()
           
 boolean relative(int rows)
           
 boolean rowDeleted()
           
 boolean rowInserted()
           
 boolean rowUpdated()
           
 void setFetchDirection(int direction)
           
 void setFetchSize(int rows)
           
 void setMaxRows(int maxRows)
           
private  BigDecimal toBigDecimal(Object o)
           
private  boolean toBoolean(Object o)
           
private  byte toByte(Object o)
           
private  byte[] toBytes(Object o)
           
private  Date toDate(Object o, TimeZone zone)
           
private  double toDouble(Object o)
           
private  float toFloat(Object o)
           
private  int toInt(Object o)
           
private  long toLong_(Object o)
           
private  long toLong(Object o)
           
private  short toShort(Object o)
           
private  String toString(Object o)
           
private  Time toTime(Object o, TimeZone zone)
           
private  Timestamp toTimestamp(Object o, TimeZone zone)
           
 void updateArray(int columnIndex, Array x)
           
 void updateArray(String columnName, Array x)
           
 void updateAsciiStream(int columnIndex, InputStream inputStream)
           
 void updateAsciiStream(int columnIndex, InputStream x, int length)
           
 void updateAsciiStream(int columnIndex, InputStream inputStream, long len)
           
 void updateAsciiStream(String columnName, InputStream inputStream)
           
 void updateAsciiStream(String columnName, InputStream x, int length)
           
 void updateAsciiStream(String columnName, InputStream inputStream, long len)
           
 void updateBigDecimal(int columnIndex, BigDecimal x)
           
 void updateBigDecimal(String columnName, BigDecimal x)
           
 void updateBinaryStream(int columnIndex, InputStream inputStream)
           
 void updateBinaryStream(int columnIndex, InputStream x, int length)
           
 void updateBinaryStream(int columnIndex, InputStream inputStream, long len)
           
 void updateBinaryStream(String columnName, InputStream inputStream)
           
 void updateBinaryStream(String columnName, InputStream x, int length)
           
 void updateBinaryStream(String columnName, InputStream inputStream, long len)
           
 void updateBlob(int columnIndex, Blob x)
           
 void updateBlob(int columnIndex, InputStream inputStream)
           
 void updateBlob(int columnIndex, InputStream inputStream, long len)
           
 void updateBlob(String columnName, Blob x)
           
 void updateBlob(String columnName, InputStream inputStream)
           
 void updateBlob(String columnName, InputStream inputStream, long len)
           
 void updateBoolean(int columnIndex, boolean x)
           
 void updateBoolean(String columnName, boolean x)
           
 void updateByte(int columnIndex, byte x)
           
 void updateByte(String columnName, byte x)
           
 void updateBytes(int columnIndex, byte[] x)
           
 void updateBytes(String columnName, byte[] x)
           
 void updateCharacterStream(int columnIndex, Reader reader)
           
 void updateCharacterStream(int columnIndex, Reader x, int length)
           
 void updateCharacterStream(int columnIndex, Reader reader, long len)
           
 void updateCharacterStream(String columnName, Reader reader)
           
 void updateCharacterStream(String columnName, Reader x, int length)
           
 void updateCharacterStream(String columnName, Reader reader, long len)
           
 void updateClob(int columnIndex, Clob x)
           
 void updateClob(int columnIndex, Reader reader)
           
 void updateClob(int columnIndex, Reader reader, long len)
           
 void updateClob(String columnName, Clob x)
           
 void updateClob(String columnName, Reader reader)
           
 void updateClob(String columnName, Reader reader, long len)
           
 void updateDate(int columnIndex, Date x)
           
 void updateDate(String columnName, Date x)
           
 void updateDouble(int columnIndex, double x)
           
 void updateDouble(String columnName, double x)
           
 void updateFloat(int columnIndex, float x)
           
 void updateFloat(String columnName, float x)
           
 void updateInt(int columnIndex, int x)
           
 void updateInt(String columnName, int x)
           
 void updateLong(int columnIndex, long x)
           
 void updateLong(String columnName, long x)
           
 void updateNCharacterStream(int columnIndex, Reader reader)
           
 void updateNCharacterStream(int columnIndex, Reader reader, long len)
           
 void updateNCharacterStream(String columnName, Reader reader)
           
 void updateNCharacterStream(String columnName, Reader reader, long len)
           
 void updateNClob(int columnIndex, NClob nclob)
           
 void updateNClob(int columnIndex, Reader reader)
           
 void updateNClob(int columnIndex, Reader reader, long len)
           
 void updateNClob(String columnName, NClob nclob)
           
 void updateNClob(String columnName, Reader reader)
           
 void updateNClob(String columnName, Reader reader, long len)
           
 void updateNString(int columnIndex, String s)
           
 void updateNString(String columnName, String s)
           
 void updateNull(int columnIndex)
           
 void updateNull(String columnName)
           
 void updateObject(int columnIndex, Object x)
           
 void updateObject(int columnIndex, Object x, int scale)
           
 void updateObject(String columnName, Object x)
           
 void updateObject(String columnName, Object x, int scale)
           
 void updateRef(int columnIndex, Ref x)
           
 void updateRef(String columnName, Ref x)
           
 void updateRow()
           
 void updateRowId(int columnIndex, RowId rowId)
           
 void updateRowId(String columnName, RowId rowId)
           
 void updateShort(int columnIndex, short x)
           
 void updateShort(String columnName, short x)
           
 void updateSQLXML(int columnIndex, SQLXML sqlxml)
           
 void updateSQLXML(String columnName, SQLXML sqlxml)
           
 void updateString(int columnIndex, String x)
           
 void updateString(String columnName, String x)
           
 void updateTime(int columnIndex, Time x)
           
 void updateTime(String columnName, Time x)
           
 void updateTimestamp(int columnIndex, Timestamp x)
           
 void updateTimestamp(String columnName, Timestamp x)
           
 boolean wasNull()
          A column may have the value of SQL NULL; wasNull reports whether the last column read had this special value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.ResultSet
getMetaData, next
 

Field Detail

gmtZone

static final TimeZone gmtZone

defaultZone

static final TimeZone defaultZone

wasNull

protected boolean wasNull

fetchSize

protected int fetchSize

maxRows

protected int maxRows
Constructor Detail

AbstractResultSet

public AbstractResultSet()
Method Detail

getRaw

protected abstract Object getRaw(int columnIndex)
                          throws SQLException
Returns the raw value of a column as an object.

Parameters:
columnIndex - Column index, 1-based
Throws:
SQLException

getRaw

protected Object getRaw(String columnName)
                 throws SQLException
Returns the raw value of a column as an object.

Parameters:
columnName - Column name
Throws:
SQLException

getConcurrency

public int getConcurrency()
                   throws SQLException
Specified by:
getConcurrency in interface ResultSet
Throws:
SQLException

getType

public int getType()
            throws SQLException
Specified by:
getType in interface ResultSet
Throws:
SQLException

setFetchDirection

public void setFetchDirection(int direction)
                       throws SQLException
Specified by:
setFetchDirection in interface ResultSet
Throws:
SQLException

getFetchDirection

public int getFetchDirection()
                      throws SQLException
Specified by:
getFetchDirection in interface ResultSet
Throws:
SQLException

getFetchSize

public int getFetchSize()
                 throws SQLException
Specified by:
getFetchSize in interface ResultSet
Throws:
SQLException

setFetchSize

public void setFetchSize(int rows)
                  throws SQLException
Specified by:
setFetchSize in interface ResultSet
Throws:
SQLException

wasNull

public boolean wasNull()
                throws SQLException
A column may have the value of SQL NULL; wasNull reports whether the last column read had this special value. Note that you must first call getXXX on a column to try to read its value and then call wasNull() to find if the value was the SQL NULL.

Specified by:
wasNull in interface ResultSet
Returns:
true if last column read was SQL NULL
Throws:
SQLException

findColumn

public int findColumn(String columnName)
               throws SQLException
Map a Resultset column name to a ResultSet column index.

Specified by:
findColumn in interface ResultSet
Parameters:
columnName - the name of the column
Returns:
the column index
Throws:
SQLException

getWarnings

public SQLWarning getWarnings()
                       throws SQLException

The first warning reported by calls on this ResultSet is returned. Subsequent ResultSet warnings will be chained to this SQLWarning.

The warning chain is automatically cleared each time a new row is read.

Note: This warning chain only covers warnings caused by ResultSet methods. Any warning caused by statement methods (such as reading OUT parameters) will be chained on the Statement object.

Specified by:
getWarnings in interface ResultSet
Returns:
the first SQLWarning or null
Throws:
SQLException

clearWarnings

public void clearWarnings()
                   throws SQLException
After this call getWarnings returns null until a new warning is reported for this ResultSet.

Specified by:
clearWarnings in interface ResultSet
Throws:
SQLException

getStatement

public Statement getStatement()
                       throws SQLException
Specified by:
getStatement in interface ResultSet
Throws:
SQLException

close

public void close()
           throws SQLException
Specified by:
close in interface ResultSet
Throws:
SQLException

getString

public String getString(int columnIndex)
                 throws SQLException
Get the value of a column in the current row as a Java String.

Specified by:
getString in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getString

public String getString(String columnName)
                 throws SQLException
Get the value of a column in the current row as a Java String.

Specified by:
getString in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getBytes

public byte[] getBytes(int columnIndex)
                throws SQLException
Get the value of a column in the current row as a Java byte array. The bytes represent the raw values returned by the driver.

Specified by:
getBytes in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getBytes

public byte[] getBytes(String columnName)
                throws SQLException
Get the value of a column in the current row as a Java byte array. The bytes represent the raw values returned by the driver.

Specified by:
getBytes in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getBoolean

public boolean getBoolean(int columnIndex)
                   throws SQLException
Get the value of a column in the current row as a Java boolean.

Specified by:
getBoolean in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value; if the value is SQL NULL, the result is false
Throws:
SQLException

getBoolean

public boolean getBoolean(String columnName)
                   throws SQLException
Get the value of a column in the current row as a Java boolean.

Specified by:
getBoolean in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is false
Throws:
SQLException

getByte

public byte getByte(int columnIndex)
             throws SQLException
Get the value of a column in the current row as a Java byte.

Specified by:
getByte in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value; if the value is SQL NULL, the result is 0
Throws:
SQLException

getByte

public byte getByte(String columnName)
             throws SQLException
Get the value of a column in the current row as a Java byte.

Specified by:
getByte in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is 0
Throws:
SQLException

getShort

public short getShort(int columnIndex)
               throws SQLException
Get the value of a column in the current row as a Java short.

Specified by:
getShort in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value; if the value is SQL NULL, the result is 0
Throws:
SQLException

getShort

public short getShort(String columnName)
               throws SQLException
Get the value of a column in the current row as a Java short.

Specified by:
getShort in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is 0
Throws:
SQLException

getInt

public int getInt(int columnIndex)
           throws SQLException
Get the value of a column in the current row as a Java int.

Specified by:
getInt in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value; if the value is SQL NULL, the result is 0
Throws:
SQLException

getInt

public int getInt(String columnName)
           throws SQLException
Get the value of a column in the current row as a Java int.

Specified by:
getInt in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is 0
Throws:
SQLException

getLong

public long getLong(int columnIndex)
             throws SQLException
Get the value of a column in the current row as a Java long.

Specified by:
getLong in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value; if the value is SQL NULL, the result is 0
Throws:
SQLException

getLong

public long getLong(String columnName)
             throws SQLException
Get the value of a column in the current row as a Java long.

Specified by:
getLong in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is 0
Throws:
SQLException

getFloat

public float getFloat(int columnIndex)
               throws SQLException
Get the value of a column in the current row as a Java float.

Specified by:
getFloat in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value; if the value is SQL NULL, the result is 0
Throws:
SQLException

getFloat

public float getFloat(String columnName)
               throws SQLException
Get the value of a column in the current row as a Java float.

Specified by:
getFloat in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is 0
Throws:
SQLException

getDouble

public double getDouble(int columnIndex)
                 throws SQLException
Get the value of a column in the current row as a Java double.

Specified by:
getDouble in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value; if the value is SQL NULL, the result is 0
Throws:
SQLException

getDouble

public double getDouble(String columnName)
                 throws SQLException
Get the value of a column in the current row as a Java double.

Specified by:
getDouble in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is 0
Throws:
SQLException

getBigDecimal

public BigDecimal getBigDecimal(int columnIndex)
                         throws SQLException
Get the value of a column in the current row as a java.lang.BigDecimal object.

Specified by:
getBigDecimal in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getBigDecimal

public BigDecimal getBigDecimal(String columnName)
                         throws SQLException
Get the value of a column in the current row as a java.lang.BigDecimal object.

Specified by:
getBigDecimal in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getBigDecimal

public BigDecimal getBigDecimal(int columnIndex,
                                int scale)
                         throws SQLException
Deprecated. 

Get the value of a column in the current row as a java.lang.BigDecimal object.

Specified by:
getBigDecimal in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
scale - the number of digits to the right of the decimal
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getBigDecimal

public BigDecimal getBigDecimal(String columnName,
                                int scale)
                         throws SQLException
Deprecated. 

Get the value of a column in the current row as a java.lang.BigDecimal object.

Specified by:
getBigDecimal in interface ResultSet
Parameters:
columnName - is the SQL name of the column
scale - the number of digits to the right of the decimal
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getDate

public Date getDate(int columnIndex)
             throws SQLException
Get the value of a column in the current row as a java.sql.Date object.

Specified by:
getDate in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getDate

public Date getDate(String columnName)
             throws SQLException
Get the value of a column in the current row as a java.sql.Date object.

Specified by:
getDate in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getDate

public Date getDate(int columnIndex,
                    Calendar cal)
             throws SQLException
Get the value of a column in the current row as a java.sql.Date object.

Specified by:
getDate in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
cal - - the java.util.Calendar object to use in constructing the date
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getDate

public Date getDate(String columnName,
                    Calendar cal)
             throws SQLException
Get the value of a column in the current row as a java.sql.Date object.

Specified by:
getDate in interface ResultSet
Parameters:
columnName - is the SQL name of the column
cal - - the java.util.Calendar object to use in constructing the date
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getTime

public Time getTime(int columnIndex)
             throws SQLException
Get the value of a column in the current row as a java.sql.Time object.

Specified by:
getTime in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getTime

public Time getTime(String columnName)
             throws SQLException
Get the value of a column in the current row as a java.sql.Time object.

Specified by:
getTime in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getTime

public Time getTime(int columnIndex,
                    Calendar cal)
             throws SQLException
Get the value of a column in the current row as a java.sql.Time object.

Specified by:
getTime in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
cal - - the java.util.Calendar object to use in constructing the time
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getTime

public Time getTime(String columnName,
                    Calendar cal)
             throws SQLException
Get the value of a column in the current row as a java.sql.Time object.

Specified by:
getTime in interface ResultSet
Parameters:
columnName - is the SQL name of the column
cal - - the java.util.Calendar object to use in constructing the time
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getTimestamp

public Timestamp getTimestamp(int columnIndex)
                       throws SQLException
Specified by:
getTimestamp in interface ResultSet
Throws:
SQLException

getTimestamp

public Timestamp getTimestamp(String columnName)
                       throws SQLException
Get the value of a column in the current row as a java.sql.Timestamp object.

Specified by:
getTimestamp in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getTimestamp

public Timestamp getTimestamp(int columnIndex,
                              Calendar cal)
                       throws SQLException
Get the value of a column in the current row as a java.sql.Timestamp object.

Specified by:
getTimestamp in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
cal - - the java.util.Calendar object to use in constructing the timestamp
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getTimestamp

public Timestamp getTimestamp(String columnName,
                              Calendar cal)
                       throws SQLException
Get the value of a column in the current row as a java.sql.Timestamp object.

Specified by:
getTimestamp in interface ResultSet
Parameters:
columnName - is the SQL name of the column
cal - - the java.util.Calendar object to use in constructing the timestamp
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getArray

public Array getArray(int columnIndex)
               throws SQLException
Get the value of a column in the current row as an Array object

Specified by:
getArray in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getArray

public Array getArray(String columnName)
               throws SQLException
Get the value of a column in the current row as an Array object

Specified by:
getArray in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getBlob

public Blob getBlob(int columnIndex)
             throws SQLException
Get the value of a column in the current row as a java.sql.Blob object

Specified by:
getBlob in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getBlob

public Blob getBlob(String columnName)
             throws SQLException
Get the value of a column in the current row as a java.sql.Blob object

Specified by:
getBlob in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getClob

public Clob getClob(int columnIndex)
             throws SQLException
Get the value of a column in the current row as a java.sql.Clob object

Specified by:
getClob in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getClob

public Clob getClob(String columnName)
             throws SQLException
Get the value of a column in the current row as a java.sql.Clob object

Specified by:
getClob in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getRef

public Ref getRef(int columnIndex)
           throws SQLException
Get the value of a column in the current row as a java.sql.Ref object

Specified by:
getRef in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getRef

public Ref getRef(String columnName)
           throws SQLException
Get the value of a column in the current row as a java.sql.Ref object

Specified by:
getRef in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getURL

public URL getURL(int columnIndex)
           throws SQLException
Get the value of a column in the current row as a java.net.URL object

Specified by:
getURL in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getURL

public URL getURL(String columnName)
           throws SQLException
Get the value of a column in the current row as a java.net.URL object

Specified by:
getURL in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the result is null
Throws:
SQLException

getObject

public Object getObject(int columnIndex)
                 throws SQLException

Get the value of a column in the current row as a Java object.

This method will return the value of the given column as a Java object. The type of the Java object will be the default Java Object type corresponding to the column's SQL type, following the mapping specified in the JDBC spec.

This method may also be used to read database specific abstract data types.

Specified by:
getObject in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
A java.lang.Object holding the column value.
Throws:
SQLException

getObject

public Object getObject(String columnName)
                 throws SQLException

Get the value of a column in the current row as a Java object.

This method will return the value of the given column as a Java object. The type of the Java object will be the default Java Object type corresponding to the column's SQL type, following the mapping specified in the JDBC spec.

This method may also be used to read database specific abstract data types.

Specified by:
getObject in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
A java.lang.Object holding the column value.
Throws:
SQLException

getObject

public Object getObject(int columnIndex,
                        Map map)
                 throws SQLException

Get the value of a column in the current row as a Java object.

This method will return the value of the given column as a Java object. The type of the Java object will be the default Java Object type corresponding to the column's SQL type, following the mapping specified in the JDBC spec. This method uses the specified Map object for custom mapping if appropriate.

This method may also be used to read database specific abstract data types.

Specified by:
getObject in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
map - a java.util.Map object that contains the mapping from SQL type names to classes in the Java programming language
Returns:
A java.lang.Object holding the column value.
Throws:
SQLException

getObject

public Object getObject(String columnName,
                        Map map)
                 throws SQLException

Get the value of a column in the current row as a Java object.

This method will return the value of the given column as a Java object. The type of the Java object will be the default Java Object type corresponding to the column's SQL type, following the mapping specified in the JDBC spec. This method uses the specified Map object for custom mapping if appropriate.

This method may also be used to read database specific abstract data types.

Specified by:
getObject in interface ResultSet
Parameters:
columnName - is the SQL name of the column
map - a java.util.Map object that contains the mapping from SQL type names to classes in the Java programming language
Returns:
A java.lang.Object holding the column value.
Throws:
SQLException

getAsciiStream

public InputStream getAsciiStream(int columnIndex)
                           throws SQLException
A column value can be retrieved as a stream of ASCII characters and then read in chunks from the stream. This method is particularly suitable for retrieving large LONGVARCHAR values. The JDBC driver will do any necessary conversion from the database format into ASCII.

Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a get method implicitly closes the stream. . Also, a stream may return 0 for available() whether there is data available or not.

Specified by:
getAsciiStream in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
a Java input stream that delivers the database column value as a stream of one byte ASCII characters. If the value is SQL NULL then the result is null.
Throws:
SQLException

getAsciiStream

public InputStream getAsciiStream(String columnName)
                           throws SQLException
A column value can be retrieved as a stream of ASCII characters and then read in chunks from the stream. This method is particularly suitable for retrieving large LONGVARCHAR values. The JDBC driver will do any necessary conversion from the database format into ASCII.

Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a get method implicitly closes the stream.

Specified by:
getAsciiStream in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
a Java input stream that delivers the database column value as a stream of one byte ASCII characters. If the value is SQL NULL then the result is null.
Throws:
SQLException

getBinaryStream

public InputStream getBinaryStream(int columnIndex)
                            throws SQLException
A column value can be retrieved as a stream of uninterpreted bytes and then read in chunks from the stream. This method is particularly suitable for retrieving large LONGVARBINARY values.

Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a get method implicitly closes the stream. Also, a stream may return 0 for available() whether there is data available or not.

Specified by:
getBinaryStream in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
a Java input stream that delivers the database column value as a stream of uninterpreted bytes. If the value is SQL NULL then the result is null.
Throws:
SQLException

getBinaryStream

public InputStream getBinaryStream(String columnName)
                            throws SQLException
A column value can be retrieved as a stream of uninterpreted bytes and then read in chunks from the stream. This method is particularly suitable for retrieving large LONGVARBINARY values.

Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a get method implicitly closes the stream.

Specified by:
getBinaryStream in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
a Java input stream that delivers the database column value as a stream of uninterpreted bytes. If the value is SQL NULL then the result is null.
Throws:
SQLException

getCharacterStream

public Reader getCharacterStream(int columnIndex)
                          throws SQLException
A column value can be retrieved as a stream of characters and then read in chunks from the stream. This method is particularly suitable for retrieving large LONGVARCHAR values. The JDBC driver will do any necessary conversion from the database format into ASCII.

Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a get method implicitly closes the stream.

Specified by:
getCharacterStream in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
a Java input stream that delivers the database column value as a character stream. If the value is SQL NULL then the result is null.
Throws:
SQLException

getCharacterStream

public Reader getCharacterStream(String columnName)
                          throws SQLException
A column value can be retrieved as a stream of characters and then read in chunks from the stream. This method is particularly suitable for retrieving large LONGVARCHAR values. The JDBC driver will do any necessary conversion from the database format into ASCII.

Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a get method implicitly closes the stream.

Specified by:
getCharacterStream in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
a Java input stream that delivers the database column value as a character stream. If the value is SQL NULL then the result is null.
Throws:
SQLException

getUnicodeStream

public InputStream getUnicodeStream(int columnIndex)
                             throws SQLException
Deprecated. 

A column value can be retrieved as a stream of Unicode characters and then read in chunks from the stream. This method is particularly suitable for retrieving large LONGVARCHAR values. The JDBC driver will do any necessary conversion from the database format into Unicode.

Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a get method implicitly closes the stream. . Also, a stream may return 0 for available() whether there is data available or not.

Specified by:
getUnicodeStream in interface ResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
a Java input stream that delivers the database column value as a stream of two byte Unicode characters. If the value is SQL NULL then the result is null.
Throws:
SQLException

getUnicodeStream

public InputStream getUnicodeStream(String columnName)
                             throws SQLException
Deprecated. 

A column value can be retrieved as a stream of Unicode characters and then read in chunks from the stream. This method is particularly suitable for retrieving large LONGVARCHAR values. The JDBC driver will do any necessary conversion from the database format into Unicode.

Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a get method implicitly closes the stream.

Specified by:
getUnicodeStream in interface ResultSet
Parameters:
columnName - is the SQL name of the column
Returns:
a Java input stream that delivers the database column value as a stream of two byte Unicode characters. If the value is SQL NULL then the result is null.
Throws:
SQLException

updateShort

public void updateShort(int columnIndex,
                        short x)
                 throws SQLException
Specified by:
updateShort in interface ResultSet
Throws:
SQLException

updateShort

public void updateShort(String columnName,
                        short x)
                 throws SQLException
Specified by:
updateShort in interface ResultSet
Throws:
SQLException

updateNull

public void updateNull(int columnIndex)
                throws SQLException
Specified by:
updateNull in interface ResultSet
Throws:
SQLException

updateNull

public void updateNull(String columnName)
                throws SQLException
Specified by:
updateNull in interface ResultSet
Throws:
SQLException

updateLong

public void updateLong(int columnIndex,
                       long x)
                throws SQLException
Specified by:
updateLong in interface ResultSet
Throws:
SQLException

updateLong

public void updateLong(String columnName,
                       long x)
                throws SQLException
Specified by:
updateLong in interface ResultSet
Throws:
SQLException

updateInt

public void updateInt(int columnIndex,
                      int x)
               throws SQLException
Specified by:
updateInt in interface ResultSet
Throws:
SQLException

updateInt

public void updateInt(String columnName,
                      int x)
               throws SQLException
Specified by:
updateInt in interface ResultSet
Throws:
SQLException

updateFloat

public void updateFloat(int columnIndex,
                        float x)
                 throws SQLException
Specified by:
updateFloat in interface ResultSet
Throws:
SQLException

updateFloat

public void updateFloat(String columnName,
                        float x)
                 throws SQLException
Specified by:
updateFloat in interface ResultSet
Throws:
SQLException

updateDouble

public void updateDouble(int columnIndex,
                         double x)
                  throws SQLException
Specified by:
updateDouble in interface ResultSet
Throws:
SQLException

updateDouble

public void updateDouble(String columnName,
                         double x)
                  throws SQLException
Specified by:
updateDouble in interface ResultSet
Throws:
SQLException

updateString

public void updateString(int columnIndex,
                         String x)
                  throws SQLException
Specified by:
updateString in interface ResultSet
Throws:
SQLException

updateString

public void updateString(String columnName,
                         String x)
                  throws SQLException
Specified by:
updateString in interface ResultSet
Throws:
SQLException

updateBigDecimal

public void updateBigDecimal(int columnIndex,
                             BigDecimal x)
                      throws SQLException
Specified by:
updateBigDecimal in interface ResultSet
Throws:
SQLException

updateBigDecimal

public void updateBigDecimal(String columnName,
                             BigDecimal x)
                      throws SQLException
Specified by:
updateBigDecimal in interface ResultSet
Throws:
SQLException

updateBoolean

public void updateBoolean(int columnIndex,
                          boolean x)
                   throws SQLException
Specified by:
updateBoolean in interface ResultSet
Throws:
SQLException

updateBoolean

public void updateBoolean(String columnName,
                          boolean x)
                   throws SQLException
Specified by:
updateBoolean in interface ResultSet
Throws:
SQLException

updateByte

public void updateByte(int columnIndex,
                       byte x)
                throws SQLException
Specified by:
updateByte in interface ResultSet
Throws:
SQLException

updateByte

public void updateByte(String columnName,
                       byte x)
                throws SQLException
Specified by:
updateByte in interface ResultSet
Throws:
SQLException

updateBytes

public void updateBytes(int columnIndex,
                        byte[] x)
                 throws SQLException
Specified by:
updateBytes in interface ResultSet
Throws:
SQLException

updateBytes

public void updateBytes(String columnName,
                        byte[] x)
                 throws SQLException
Specified by:
updateBytes in interface ResultSet
Throws:
SQLException

updateDate

public void updateDate(int columnIndex,
                       Date x)
                throws SQLException
Specified by:
updateDate in interface ResultSet
Throws:
SQLException

updateDate

public void updateDate(String columnName,
                       Date x)
                throws SQLException
Specified by:
updateDate in interface ResultSet
Throws:
SQLException

updateTime

public void updateTime(int columnIndex,
                       Time x)
                throws SQLException
Specified by:
updateTime in interface ResultSet
Throws:
SQLException

updateTime

public void updateTime(String columnName,
                       Time x)
                throws SQLException
Specified by:
updateTime in interface ResultSet
Throws:
SQLException

updateTimestamp

public void updateTimestamp(int columnIndex,
                            Timestamp x)
                     throws SQLException
Specified by:
updateTimestamp in interface ResultSet
Throws:
SQLException

updateTimestamp

public void updateTimestamp(String columnName,
                            Timestamp x)
                     throws SQLException
Specified by:
updateTimestamp in interface ResultSet
Throws:
SQLException

updateArray

public void updateArray(int columnIndex,
                        Array x)
                 throws SQLException
Specified by:
updateArray in interface ResultSet
Throws:
SQLException

updateArray

public void updateArray(String columnName,
                        Array x)
                 throws SQLException
Specified by:
updateArray in interface ResultSet
Throws:
SQLException

updateRef

public void updateRef(int columnIndex,
                      Ref x)
               throws SQLException
Specified by:
updateRef in interface ResultSet
Throws:
SQLException

updateRef

public void updateRef(String columnName,
                      Ref x)
               throws SQLException
Specified by:
updateRef in interface ResultSet
Throws:
SQLException

updateBlob

public void updateBlob(int columnIndex,
                       Blob x)
                throws SQLException
Specified by:
updateBlob in interface ResultSet
Throws:
SQLException

updateBlob

public void updateBlob(String columnName,
                       Blob x)
                throws SQLException
Specified by:
updateBlob in interface ResultSet
Throws:
SQLException

updateClob

public void updateClob(int columnIndex,
                       Clob x)
                throws SQLException
Specified by:
updateClob in interface ResultSet
Throws:
SQLException

updateClob

public void updateClob(String columnName,
                       Clob x)
                throws SQLException
Specified by:
updateClob in interface ResultSet
Throws:
SQLException

updateAsciiStream

public void updateAsciiStream(int columnIndex,
                              InputStream x,
                              int length)
                       throws SQLException
Specified by:
updateAsciiStream in interface ResultSet
Throws:
SQLException

updateAsciiStream

public void updateAsciiStream(String columnName,
                              InputStream x,
                              int length)
                       throws SQLException
Specified by:
updateAsciiStream in interface ResultSet
Throws:
SQLException

updateBinaryStream

public void updateBinaryStream(int columnIndex,
                               InputStream x,
                               int length)
                        throws SQLException
Specified by:
updateBinaryStream in interface ResultSet
Throws:
SQLException

updateBinaryStream

public void updateBinaryStream(String columnName,
                               InputStream x,
                               int length)
                        throws SQLException
Specified by:
updateBinaryStream in interface ResultSet
Throws:
SQLException

updateCharacterStream

public void updateCharacterStream(int columnIndex,
                                  Reader x,
                                  int length)
                           throws SQLException
Specified by:
updateCharacterStream in interface ResultSet
Throws:
SQLException

updateCharacterStream

public void updateCharacterStream(String columnName,
                                  Reader x,
                                  int length)
                           throws SQLException
Specified by:
updateCharacterStream in interface ResultSet
Throws:
SQLException

updateObject

public void updateObject(int columnIndex,
                         Object x)
                  throws SQLException
Specified by:
updateObject in interface ResultSet
Throws:
SQLException

updateObject

public void updateObject(String columnName,
                         Object x)
                  throws SQLException
Specified by:
updateObject in interface ResultSet
Throws:
SQLException

updateObject

public void updateObject(int columnIndex,
                         Object x,
                         int scale)
                  throws SQLException
Specified by:
updateObject in interface ResultSet
Throws:
SQLException

updateObject

public void updateObject(String columnName,
                         Object x,
                         int scale)
                  throws SQLException
Specified by:
updateObject in interface ResultSet
Throws:
SQLException

updateRow

public void updateRow()
               throws SQLException
Specified by:
updateRow in interface ResultSet
Throws:
SQLException

rowUpdated

public boolean rowUpdated()
                   throws SQLException
Specified by:
rowUpdated in interface ResultSet
Throws:
SQLException

rowInserted

public boolean rowInserted()
                    throws SQLException
Specified by:
rowInserted in interface ResultSet
Throws:
SQLException

rowDeleted

public boolean rowDeleted()
                   throws SQLException
Specified by:
rowDeleted in interface ResultSet
Throws:
SQLException

afterLast

public void afterLast()
               throws SQLException
Specified by:
afterLast in interface ResultSet
Throws:
SQLException

beforeFirst

public void beforeFirst()
                 throws SQLException
Specified by:
beforeFirst in interface ResultSet
Throws:
SQLException

first

public boolean first()
              throws SQLException
Specified by:
first in interface ResultSet
Throws:
SQLException

last

public boolean last()
             throws SQLException
Specified by:
last in interface ResultSet
Throws:
SQLException

previous

public boolean previous()
                 throws SQLException
Specified by:
previous in interface ResultSet
Throws:
SQLException

cancelRowUpdates

public void cancelRowUpdates()
                      throws SQLException
Specified by:
cancelRowUpdates in interface ResultSet
Throws:
SQLException

deleteRow

public void deleteRow()
               throws SQLException
Specified by:
deleteRow in interface ResultSet
Throws:
SQLException

moveToCurrentRow

public void moveToCurrentRow()
                      throws SQLException
Specified by:
moveToCurrentRow in interface ResultSet
Throws:
SQLException

moveToInsertRow

public void moveToInsertRow()
                     throws SQLException
Specified by:
moveToInsertRow in interface ResultSet
Throws:
SQLException

relative

public boolean relative(int rows)
                 throws SQLException
Specified by:
relative in interface ResultSet
Throws:
SQLException

refreshRow

public void refreshRow()
                throws SQLException
Specified by:
refreshRow in interface ResultSet
Throws:
SQLException

insertRow

public void insertRow()
               throws SQLException
Specified by:
insertRow in interface ResultSet
Throws:
SQLException

absolute

public boolean absolute(int row)
                 throws SQLException
Specified by:
absolute in interface ResultSet
Throws:
SQLException

getCursorName

public String getCursorName()
                     throws SQLException
Get the name of the SQL cursor used by this ResultSet.

In SQL, a result table is retrieved through a cursor that is named. The current row of a result can be updated or deleted using a positioned update/delete statement that references the cursor name.

JDBC supports this SQL feature by providing the name of the SQL cursor used by a ResultSet. The current row of a ResultSet is also the current row of this SQL cursor.

Note: If positioned update is not supported a java.sql.SQLException is thrown

Specified by:
getCursorName in interface ResultSet
Returns:
the ResultSet's SQL cursor name
Throws:
SQLException

isLast

public boolean isLast()
               throws SQLException
Specified by:
isLast in interface ResultSet
Throws:
SQLException

isFirst

public boolean isFirst()
                throws SQLException
Specified by:
isFirst in interface ResultSet
Throws:
SQLException

isBeforeFirst

public boolean isBeforeFirst()
                      throws SQLException
Specified by:
isBeforeFirst in interface ResultSet
Throws:
SQLException

isAfterLast

public boolean isAfterLast()
                    throws SQLException
Specified by:
isAfterLast in interface ResultSet
Throws:
SQLException

getRow

public int getRow()
           throws SQLException
Specified by:
getRow in interface ResultSet
Throws:
SQLException

setMaxRows

public void setMaxRows(int maxRows)
See Also:
Statement.setMaxRows(int)

newConversionError

protected SQLException newConversionError(Object o,
                                          String className)

newConversionError

protected SQLException newConversionError(Object o,
                                          Class clazz)

newDirectionError

protected SQLException newDirectionError()

newUpdatabilityError

protected SQLException newUpdatabilityError()

newFetchError

protected SQLException newFetchError(Throwable e)

toBoolean

private boolean toBoolean(Object o)
                   throws SQLException
Throws:
SQLException

toByte

private byte toByte(Object o)
             throws SQLException
Throws:
SQLException

toDate

private Date toDate(Object o,
                    TimeZone zone)
             throws SQLException
Throws:
SQLException

toDouble

private double toDouble(Object o)
                 throws SQLException
Throws:
SQLException

toFloat

private float toFloat(Object o)
               throws SQLException
Throws:
SQLException

toBigDecimal

private BigDecimal toBigDecimal(Object o)
                         throws SQLException
Throws:
SQLException

toInt

private int toInt(Object o)
           throws SQLException
Throws:
SQLException

toLong

private long toLong(Object o)
             throws SQLException
Throws:
SQLException

toLong_

private long toLong_(Object o)
              throws SQLException
Throws:
SQLException

toShort

private short toShort(Object o)
               throws SQLException
Throws:
SQLException

toString

private String toString(Object o)

toBytes

private byte[] toBytes(Object o)
                throws SQLException
Throws:
SQLException

toTime

private Time toTime(Object o,
                    TimeZone zone)
             throws SQLException
Throws:
SQLException

toTimestamp

private Timestamp toTimestamp(Object o,
                              TimeZone zone)
                       throws SQLException
Throws:
SQLException

updateBinaryStream

public void updateBinaryStream(int columnIndex,
                               InputStream inputStream)
                        throws SQLException
Throws:
SQLException

updateBinaryStream

public void updateBinaryStream(String columnName,
                               InputStream inputStream)
                        throws SQLException
Throws:
SQLException

updateBinaryStream

public void updateBinaryStream(int columnIndex,
                               InputStream inputStream,
                               long len)
                        throws SQLException
Throws:
SQLException

updateBinaryStream

public void updateBinaryStream(String columnName,
                               InputStream inputStream,
                               long len)
                        throws SQLException
Throws:
SQLException

updateBlob

public void updateBlob(int columnIndex,
                       InputStream inputStream)
                throws SQLException
Throws:
SQLException

updateBlob

public void updateBlob(String columnName,
                       InputStream inputStream)
                throws SQLException
Throws:
SQLException

updateBlob

public void updateBlob(int columnIndex,
                       InputStream inputStream,
                       long len)
                throws SQLException
Throws:
SQLException

updateBlob

public void updateBlob(String columnName,
                       InputStream inputStream,
                       long len)
                throws SQLException
Throws:
SQLException

updateAsciiStream

public void updateAsciiStream(int columnIndex,
                              InputStream inputStream)
                       throws SQLException
Throws:
SQLException

updateAsciiStream

public void updateAsciiStream(String columnName,
                              InputStream inputStream,
                              long len)
                       throws SQLException
Throws:
SQLException

updateAsciiStream

public void updateAsciiStream(int columnIndex,
                              InputStream inputStream,
                              long len)
                       throws SQLException
Throws:
SQLException

updateAsciiStream

public void updateAsciiStream(String columnName,
                              InputStream inputStream)
                       throws SQLException
Throws:
SQLException

updateNClob

public void updateNClob(int columnIndex,
                        Reader reader)
                 throws SQLException
Throws:
SQLException

updateNClob

public void updateNClob(String columnName,
                        Reader reader)
                 throws SQLException
Throws:
SQLException

updateNClob

public void updateNClob(int columnIndex,
                        NClob nclob)
                 throws SQLException
Throws:
SQLException

updateNClob

public void updateNClob(String columnName,
                        NClob nclob)
                 throws SQLException
Throws:
SQLException

updateNClob

public void updateNClob(int columnIndex,
                        Reader reader,
                        long len)
                 throws SQLException
Throws:
SQLException

updateNClob

public void updateNClob(String columnName,
                        Reader reader,
                        long len)
                 throws SQLException
Throws:
SQLException

updateCharacterStream

public void updateCharacterStream(int columnIndex,
                                  Reader reader)
                           throws SQLException
Throws:
SQLException

updateCharacterStream

public void updateCharacterStream(String columnName,
                                  Reader reader)
                           throws SQLException
Throws:
SQLException

updateCharacterStream

public void updateCharacterStream(int columnIndex,
                                  Reader reader,
                                  long len)
                           throws SQLException
Throws:
SQLException

updateCharacterStream

public void updateCharacterStream(String columnName,
                                  Reader reader,
                                  long len)
                           throws SQLException
Throws:
SQLException

updateClob

public void updateClob(int columnIndex,
                       Reader reader)
                throws SQLException
Throws:
SQLException

updateClob

public void updateClob(String columnName,
                       Reader reader)
                throws SQLException
Throws:
SQLException

updateClob

public void updateClob(int columnIndex,
                       Reader reader,
                       long len)
                throws SQLException
Throws:
SQLException

updateClob

public void updateClob(String columnName,
                       Reader reader,
                       long len)
                throws SQLException
Throws:
SQLException

updateSQLXML

public void updateSQLXML(int columnIndex,
                         SQLXML sqlxml)
                  throws SQLException
Throws:
SQLException

updateSQLXML

public void updateSQLXML(String columnName,
                         SQLXML sqlxml)
                  throws SQLException
Throws:
SQLException

updateNCharacterStream

public void updateNCharacterStream(int columnIndex,
                                   Reader reader)
                            throws SQLException
Throws:
SQLException

updateNCharacterStream

public void updateNCharacterStream(String columnName,
                                   Reader reader)
                            throws SQLException
Throws:
SQLException

updateNCharacterStream

public void updateNCharacterStream(int columnIndex,
                                   Reader reader,
                                   long len)
                            throws SQLException
Throws:
SQLException

updateNCharacterStream

public void updateNCharacterStream(String columnName,
                                   Reader reader,
                                   long len)
                            throws SQLException
Throws:
SQLException

updateNString

public void updateNString(int columnIndex,
                          String s)
                   throws SQLException
Throws:
SQLException

updateNString

public void updateNString(String columnName,
                          String s)
                   throws SQLException
Throws:
SQLException

updateRowId

public void updateRowId(int columnIndex,
                        RowId rowId)
                 throws SQLException
Throws:
SQLException

updateRowId

public void updateRowId(String columnName,
                        RowId rowId)
                 throws SQLException
Throws:
SQLException

getNCharacterStream

public Reader getNCharacterStream(String columnName)
                           throws SQLException
Throws:
SQLException

getNCharacterStream

public Reader getNCharacterStream(int columnIndex)
                           throws SQLException
Throws:
SQLException

getNString

public String getNString(String columnName)
                  throws SQLException
Throws:
SQLException

getNString

public String getNString(int columnIndex)
                  throws SQLException
Throws:
SQLException

getSQLXML

public SQLXML getSQLXML(String columnName)
                 throws SQLException
Throws:
SQLException

getSQLXML

public SQLXML getSQLXML(int columnIndex)
                 throws SQLException
Throws:
SQLException

getNClob

public NClob getNClob(String columnName)
               throws SQLException
Throws:
SQLException

getNClob

public NClob getNClob(int columnIndex)
               throws SQLException
Throws:
SQLException

getRowId

public RowId getRowId(String columnName)
               throws SQLException
Throws:
SQLException

getRowId

public RowId getRowId(int columnIndex)
               throws SQLException
Throws:
SQLException

isClosed

public boolean isClosed()
                 throws SQLException
Throws:
SQLException

getHoldability

public int getHoldability()
                   throws SQLException
Throws:
SQLException