com.uwyn.rife.database
Class DbResultSet

java.lang.Object
  extended by com.uwyn.rife.database.DbResultSet
All Implemented Interfaces:
Cloneable, ResultSet, Wrapper
Direct Known Subclasses:
DbResultSet30, DbResultSet40

public abstract class DbResultSet
extends Object
implements ResultSet, Cloneable


Field Summary
protected  boolean mFirstRowSkew
           
protected  boolean mHasResultRows
           
protected  ResultSet mResultSet
           
protected  DbStatement mStatement
           
 
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
 
Method Summary
 boolean absolute(int row)
           
 void afterLast()
           
 void beforeFirst()
           
 void cancelRowUpdates()
           
 void clearWarnings()
           
 Object clone()
          Simply clones the instance with the default clone method.
 void close()
           
 void deleteRow()
           
 int findColumn(String columnName)
           
 boolean first()
           
 Array getArray(int i)
           
 Array getArray(String colName)
           
 InputStream getAsciiStream(int columnIndex)
           
 InputStream getAsciiStream(String columnName)
           
 BigDecimal getBigDecimal(int columnIndex)
           
 BigDecimal getBigDecimal(int columnIndex, int scale)
           
 BigDecimal getBigDecimal(String columnName)
           
 BigDecimal getBigDecimal(String columnName, int scale)
           
 InputStream getBinaryStream(int columnIndex)
           
 InputStream getBinaryStream(String columnName)
           
 Blob getBlob(int i)
           
 Blob getBlob(String colName)
           
 boolean getBoolean(int columnIndex)
           
 boolean getBoolean(String columnName)
           
 byte getByte(int columnIndex)
           
 byte getByte(String columnName)
           
 byte[] getBytes(int columnIndex)
           
 byte[] getBytes(String columnName)
           
 Reader getCharacterStream(int columnIndex)
           
 Reader getCharacterStream(String columnName)
           
 Clob getClob(int i)
           
 Clob getClob(String colName)
           
 int getConcurrency()
           
 String getCursorName()
           
 Date getDate(int columnIndex)
           
 Date getDate(int columnIndex, Calendar cal)
           
 Date getDate(String columnName)
           
 Date getDate(String columnName, Calendar cal)
           
 double getDouble(int columnIndex)
           
 double getDouble(String columnName)
           
 int getFetchDirection()
           
 int getFetchSize()
           
 InputStream getFirstAsciiStream()
          Retrieves the first field of the first row of this DbResultSet object as an ascii stream.
 BigDecimal getFirstBigDecimal()
          Retrieves the first field of the first row of this DbResultSet object as a big decimal.
 InputStream getFirstBinaryStream()
          Retrieves the first field of the first row of this DbResultSet object as a binary stream.
 boolean getFirstBoolean()
          Retrieves the first field of the first row of this DbResultSet object as a boolean.
 byte getFirstByte()
          Retrieves the first field of the first row of this DbResultSet object as a byte.
 byte[] getFirstBytes()
          Retrieves the first field of the first row of this DbResultSet object as an array of bytes.
 Reader getFirstCharacterStream()
          Retrieves the first field of the first row of this DbResultSet object as a character stream.
 Date getFirstDate()
          Retrieves the first field of the first row of this DbResultSet object as a sql date.
 Date getFirstDate(Calendar cal)
          Retrieves the first field of the first row of this DbResultSet object as a sql date.
 double getFirstDouble()
          Retrieves the first field of the first row of this DbResultSet object as a double.
 float getFirstFloat()
          Retrieves the first field of the first row of this DbResultSet object as a float.
 int getFirstInt()
          Retrieves the first field of the first row of this DbResultSet object as an integer.
 long getFirstLong()
          Retrieves the first field of the first row of this DbResultSet object as a long.
 short getFirstShort()
          Retrieves the first field of the first row of this DbResultSet object as a short.
 String getFirstString()
          Retrieves the first field of the first row of this DbResultSet object as a string.
 Time getFirstTime()
          Retrieves the first field of the first row of this DbResultSet object as a sql time.
 Time getFirstTime(Calendar cal)
          Retrieves the first field of the first row of this DbResultSet object as a sql time.
 Timestamp getFirstTimestamp()
          Retrieves the first field of the first row of this DbResultSet object as a sql timestamo.
 Timestamp getFirstTimestamp(Calendar cal)
          Retrieves the first field of the first row of this DbResultSet object as a sql timestamp.
 float getFloat(int columnIndex)
           
 float getFloat(String columnName)
           
 int getInt(int columnIndex)
           
 int getInt(String columnName)
           
 long getLong(int columnIndex)
           
 long getLong(String columnName)
           
 ResultSetMetaData getMetaData()
           
 Object getObject(int columnIndex)
           
 Object getObject(int i, Map map)
           
 Object getObject(String columnName)
           
 Object getObject(String colName, Map map)
           
 Ref getRef(int i)
           
 Ref getRef(String colName)
           
 int getRow()
           
 short getShort(int columnIndex)
           
 short getShort(String columnName)
           
 Statement getStatement()
           
 String getString(int columnIndex)
           
 String getString(String columnName)
           
 Time getTime(int columnIndex)
           
 Time getTime(int columnIndex, Calendar cal)
           
 Time getTime(String columnName)
           
 Time getTime(String columnName, Calendar cal)
           
 Timestamp getTimestamp(int columnIndex)
           
 Timestamp getTimestamp(int columnIndex, Calendar cal)
           
 Timestamp getTimestamp(String columnName)
           
 Timestamp getTimestamp(String columnName, Calendar cal)
           
 int getType()
           
 InputStream getUnicodeStream(int columnIndex)
           
 InputStream getUnicodeStream(String columnName)
           
 URL getURL(int columnIndex)
           
 URL getURL(String columnName)
           
 SQLWarning getWarnings()
           
 boolean hasResultRows()
          Determines if there are rows available in the ResultSet object that was returned by an execute method.
 void insertRow()
           
 boolean isAfterLast()
           
 boolean isBeforeFirst()
           
 boolean isFirst()
           
 boolean isLast()
           
 boolean last()
           
 void moveToCurrentRow()
           
 void moveToInsertRow()
           
 boolean next()
           
 boolean previous()
           
 void refreshRow()
           
 boolean relative(int rows)
           
 boolean rowDeleted()
           
 boolean rowInserted()
           
 boolean rowUpdated()
           
 void setFetchDirection(int direction)
           
 void setFetchSize(int rows)
           
 void updateArray(int columnIndex, Array x)
           
 void updateArray(String columnName, Array x)
           
 void updateAsciiStream(int columnIndex, InputStream x, int length)
           
 void updateAsciiStream(String columnName, InputStream x, int length)
           
 void updateBigDecimal(int columnIndex, BigDecimal x)
           
 void updateBigDecimal(String columnName, BigDecimal x)
           
 void updateBinaryStream(int columnIndex, InputStream x, int length)
           
 void updateBinaryStream(String columnName, InputStream x, int length)
           
 void updateBlob(int columnIndex, Blob x)
           
 void updateBlob(String columnName, Blob x)
           
 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 x, int length)
           
 void updateCharacterStream(String columnName, Reader reader, int length)
           
 void updateClob(int columnIndex, Clob x)
           
 void updateClob(String columnName, Clob x)
           
 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 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 updateShort(int columnIndex, short x)
           
 void updateShort(String columnName, short x)
           
 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()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.ResultSet
getHoldability, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getRowId, getRowId, getSQLXML, getSQLXML, isClosed, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateRowId, updateRowId, updateSQLXML, updateSQLXML
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Field Detail

mStatement

protected DbStatement mStatement

mResultSet

protected ResultSet mResultSet

mFirstRowSkew

protected boolean mFirstRowSkew

mHasResultRows

protected boolean mHasResultRows
Method Detail

next

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

previous

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

absolute

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

relative

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

beforeFirst

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

first

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

last

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

afterLast

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

moveToInsertRow

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

moveToCurrentRow

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

isBeforeFirst

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

isFirst

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

isLast

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

isAfterLast

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

getRow

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

refreshRow

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

insertRow

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

updateRow

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

deleteRow

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

rowInserted

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

rowUpdated

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

rowDeleted

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

close

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

wasNull

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

setFetchDirection

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

setFetchSize

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

cancelRowUpdates

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

getMetaData

public final ResultSetMetaData getMetaData()
                                    throws SQLException
Specified by:
getMetaData in interface