jxDBCon 0.9z

org.sourceforge.jxdbcon
Class ArrayResultSet

java.lang.Object
  |
  +--org.sourceforge.jxdbcon.AbstractResultSet
        |
        +--org.sourceforge.jxdbcon.AbstractResultSetRO
              |
              +--org.sourceforge.jxdbcon.AbstractRowsResultSet
                    |
                    +--org.sourceforge.jxdbcon.ArrayResultSet
All Implemented Interfaces:
ResultSet

public class ArrayResultSet
extends AbstractRowsResultSet

ArrayResultSet is a concrete immutable ResultSet where the data is stored in a Java array.

Version:
$Revision: 1.10 $, $Date: 2002/03/16 01:26:07 $
Author:
Keve Müller

Field Summary
private  String[] colNames
           
private static Object[] emptyRows
           
private  Object[] rowData
           
private  ResultSetMetaData rsmeta
           
private  Statement statement
           
 
Fields inherited from class org.sourceforge.jxdbcon.AbstractRowsResultSet
iter
 
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
ArrayResultSet(ConversionContext resContext, String[] colNames, AbstractType[] resTypes)
           
ArrayResultSet(ConversionContext resContext, String[] colNames, AbstractType[] resTypes, Object[] rowData)
           
 
Method Summary
 void close()
           
 int findColumn(String columnName)
          Find a column by name.
 String getCursorName()
           
 ResultSetMetaData getMetaData()
           
 Statement getStatement()
           
 ListIterator makeIterator()
          Make the iterator.
 
Methods inherited from class org.sourceforge.jxdbcon.AbstractRowsResultSet
absolute, afterLast, beforeFirst, first, getRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, next, previous, relative
 
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, 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, getUnicodeStream, getUnicodeStream
 

Field Detail

colNames

private String[] colNames

emptyRows

private static final Object[] emptyRows

rowData

private Object[] rowData

rsmeta

private ResultSetMetaData rsmeta

statement

private Statement statement
Constructor Detail

ArrayResultSet

public ArrayResultSet(ConversionContext resContext,
                      String[] colNames,
                      AbstractType[] resTypes)
               throws SQLException

ArrayResultSet

public ArrayResultSet(ConversionContext resContext,
                      String[] colNames,
                      AbstractType[] resTypes,
                      Object[] rowData)
               throws SQLException
Method Detail

close

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

findColumn

public int findColumn(String columnName)
               throws SQLException
Description copied from class: AbstractResultSet
Find a column by name. Extending classes should override this method. This implementation iterates over the ResultSetMetaData object returned by getMetaData.

Specified by:
findColumn in interface ResultSet
Overrides:
findColumn in class AbstractResultSet
SQLException

getCursorName

public String getCursorName()

getMetaData

public ResultSetMetaData getMetaData()

getStatement

public final Statement getStatement()

makeIterator

public ListIterator makeIterator()
Description copied from class: AbstractRowsResultSet
Make the iterator.

Specified by:
makeIterator in class AbstractRowsResultSet
Returns:
The iterator.

jxDBCon 0.9z

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