jxDBCon 0.9z

org.sourceforge.jxdbcon.postgresql
Class PGPlainResultSet

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

public class PGPlainResultSet
extends AbstractRowsResultSet

PGPlainResultSet extends the AbstractRowsResultSet with PostgreSQL functionality. You get an instance of this class, when executing a Statement returning a ResultSet in auto-commit mode or not setting a CursorName.

Version:
$Revision: 1.7 $
Author:
Keve Müller

Field Summary
private  PGConnection conn
           
(package private)  PGExecResult res
           
private  DefaultResultSetMetaData resmeta
           
private  AbstractStatement 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
PGPlainResultSet(AbstractStatement statement, ConversionContext resContext, AbstractType[] resTypes, PGExecResult res, DefaultResultSetMetaData resMeta)
           
PGPlainResultSet(AbstractStatement statement, Object[] rr, PGExecResult res, DefaultResultSetMetaData resMeta)
           
PGPlainResultSet(ConversionContext resContext, AbstractType[] resTypes, PGExecResult res, DefaultResultSetMetaData resMeta)
           
 
Method Summary
 void close()
           
 int findColumn(String columnName)
          Find a column by name.
 String getCursorName()
           
 ResultSetMetaData getMetaData()
           
 Statement getStatement()
           
protected  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

conn

private PGConnection conn

res

PGExecResult res

resmeta

private DefaultResultSetMetaData resmeta

statement

private AbstractStatement statement
Constructor Detail

PGPlainResultSet

public PGPlainResultSet(AbstractStatement statement,
                        ConversionContext resContext,
                        AbstractType[] resTypes,
                        PGExecResult res,
                        DefaultResultSetMetaData resMeta)
                 throws SQLException

PGPlainResultSet

public PGPlainResultSet(AbstractStatement statement,
                        Object[] rr,
                        PGExecResult res,
                        DefaultResultSetMetaData resMeta)
                 throws SQLException

PGPlainResultSet

public PGPlainResultSet(ConversionContext resContext,
                        AbstractType[] resTypes,
                        PGExecResult res,
                        DefaultResultSetMetaData resMeta)
                 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 Statement getStatement()

makeIterator

protected 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.