jxDBCon 0.9z

org.sourceforge.jxdbcon
Class AbstractRowsResultSet

java.lang.Object
  |
  +--org.sourceforge.jxdbcon.AbstractResultSet
        |
        +--org.sourceforge.jxdbcon.AbstractResultSetRO
              |
              +--org.sourceforge.jxdbcon.AbstractRowsResultSet
All Implemented Interfaces:
ResultSet
Direct Known Subclasses:
ArrayResultSet, PGPlainResultSet

public abstract class AbstractRowsResultSet
extends AbstractResultSetRO

AbstractRowsResultSet defines a ResultSet over data accessed via a ListIterator.

Version:
$Revision: 1.11 $, $Date: 2002/04/13 16:45:46 $
Author:
Keve Müller

Field Summary
protected  ListIterator iter
          The listiterator that produces the rows.
private  Object last
           
 
Fields inherited from class org.sourceforge.jxdbcon.AbstractResultSet
fetchDirection, fetchSize, isClosed, resContext, resData, resTypes
 
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
AbstractRowsResultSet(ConversionContext resContext, AbstractType[] resTypes)
          Construct a rows ResultSet using the given ConversionContext and the columns' types.
 
Method Summary
 boolean absolute(int row)
           
 void afterLast()
           
 void beforeFirst()
           
 void close()
           
 boolean first()
           
 int getRow()
           
 boolean isAfterLast()
           
 boolean isBeforeFirst()
           
 boolean isFirst()
           
 boolean isLast()
          FIXME: This is broken for empty sets, does not return false.
 boolean last()
           
protected abstract  ListIterator makeIterator()
          Make the iterator.
 boolean next()
           
 boolean previous()
           
 boolean relative(int rows)
           
 
Methods inherited from class org.sourceforge.jxdbcon.AbstractResultSetRO
cancelRowUpdates, deleteRow, getConcurrency, insertRow, moveToCurrentRow, moveToInsertRow, refreshRow, rowDeleted, rowInserted, rowUpdated, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp
 
Methods inherited from class org.sourceforge.jxdbcon.AbstractResultSet
clearWarnings, finalize, findColumn, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getContext, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getInt, getInt, getLong, getLong, getObject, getObject, getObject, getObject, getRef, getRef, getShort, getShort, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getType, getURL, getURL, getWarnings, setFetchDirection, setFetchSize, wasNull
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.ResultSet
getBigDecimal, getBigDecimal, getCursorName, getMetaData, getStatement, getUnicodeStream, getUnicodeStream
 

Field Detail

iter

protected ListIterator iter
The listiterator that produces the rows.


last

private Object last
Constructor Detail

AbstractRowsResultSet

public AbstractRowsResultSet(ConversionContext resContext,
                             AbstractType[] resTypes)
Construct a rows ResultSet using the given ConversionContext and the columns' types.

Parameters:
resContext - the context to use
resTypes - the columns' types
Method Detail

absolute

public boolean absolute(int row)
                 throws SQLException
SQLException

afterLast

public void afterLast()
               throws SQLException
SQLException

beforeFirst

public void beforeFirst()
                 throws SQLException
SQLException

close

public void close()
Specified by:
close in interface ResultSet
Overrides:
close in class AbstractResultSet
See Also:
close()

first

public boolean first()
              throws SQLException
SQLException

getRow

public int getRow()
           throws SQLException
SQLException

isAfterLast

public boolean isAfterLast()
                    throws SQLException
SQLException

isBeforeFirst

public boolean isBeforeFirst()
                      throws SQLException
SQLException
See Also:
isBeforeFirst()

isFirst

public boolean isFirst()
                throws SQLException
SQLException

isLast

public boolean isLast()
               throws SQLException
FIXME: This is broken for empty sets, does not return false.

SQLException

last

public boolean last()
             throws SQLException
SQLException

makeIterator

protected abstract ListIterator makeIterator()
Make the iterator.

Returns:
The iterator.

next

public boolean next()
             throws SQLException
SQLException

previous

public boolean previous()
                 throws SQLException
SQLException

relative

public boolean relative(int rows)
                 throws SQLException
SQLException

jxDBCon 0.9z

Copyright © 2001,2002 Keve Müller; see LICENSE file for details.