org.postgresql.pljava.jdbc
Class SPIResultSet

java.lang.Object
  extended by org.postgresql.pljava.jdbc.AbstractResultSet
      extended by org.postgresql.pljava.jdbc.ObjectResultSet
          extended by org.postgresql.pljava.jdbc.ReadOnlyResultSet
              extended by org.postgresql.pljava.jdbc.SPIResultSet
All Implemented Interfaces:
java.sql.ResultSet

public class SPIResultSet
extends ReadOnlyResultSet

A Read-only ResultSet that provides direct access to a Portal. At present, only forward positioning is implemented. Attempts to use reverse or absolute positioning will fail.


Field Summary
 
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)
          Cursor positioning is not implemented yet.
 void afterLast()
          Cursor positoning is not implemented yet.
 void beforeFirst()
          Cursor positoning is not implemented yet.
 void close()
           
 int findColumn(java.lang.String columnName)
           
 boolean first()
          Cursor positioning is not implemented yet.
protected  Tuple getCurrentRow()
           
 java.lang.String getCursorName()
           
 int getFetchDirection()
           
 int getFetchSize()
           
protected  java.lang.Object getObjectValue(int columnIndex)
           
protected  Portal getPortal()
           
 int getRow()
           
 java.sql.Statement getStatement()
           
protected  SPITupleTable getTupleTable()
           
 int getType()
           
 boolean isAfterLast()
           
 boolean isBeforeFirst()
           
 boolean isFirst()
           
 boolean isLast()
           
 boolean last()
          Cursor positioning is not implemented yet.
 boolean next()
           
protected  Tuple peekNext()
           
 boolean previous()
          Reverse positioning is not implemented yet.
 boolean relative(int rows)
          Cursor positioning is not implemented yet.
 void setFetchDirection(int direction)
          Only ResultSet.FETCH_FORWARD is supported.
 void setFetchSize(int fetchSize)
           
 
Methods inherited from class org.postgresql.pljava.jdbc.ReadOnlyResultSet
cancelRowUpdates, deleteRow, getConcurrency, insertRow, moveToCurrentRow, moveToInsertRow, rowDeleted, rowInserted, rowUpdated, updateObject, updateObject, updateRow
 
Methods inherited from class org.postgresql.pljava.jdbc.ObjectResultSet
clearWarnings, getArray, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBlob, getBoolean, getByte, getBytes, getCharacterStream, getClob, getDate, getDate, getDouble, getFloat, getInt, getLong, getMetaData, getNumber, getObject, getObject, getObjectValue, getRef, getShort, getString, getTime, getTime, getTimestamp, getTimestamp, getUnicodeStream, getURL, getValue, getValue, getWarnings, refreshRow, updateArray, updateAsciiStream, updateBigDecimal, updateBinaryStream, updateBlob, updateBoolean, updateByte, updateBytes, updateCharacterStream, updateClob, updateDate, updateDouble, updateFloat, updateInt, updateLong, updateNull, updateRef, updateShort, updateString, updateTime, updateTimestamp, wasNull
 
Methods inherited from class org.postgresql.pljava.jdbc.AbstractResultSet
getArray, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBlob, getBoolean, getByte, getBytes, getCharacterStream, getClob, getDate, getDate, getDouble, getFloat, getInt, getLong, getObject, getObject, getRef, getShort, getString, getTime, getTime, getTimestamp, getTimestamp, getUnicodeStream, getURL, updateArray, updateAsciiStream, updateBigDecimal, updateBinaryStream, updateBlob, updateBoolean, updateByte, updateBytes, updateCharacterStream, updateClob, updateDate, updateDouble, updateFloat, updateInt, updateLong, updateNull, updateObject, updateObject, updateRef, updateShort, updateString, updateTime, updateTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFetchDirection

public int getFetchDirection()
                      throws java.sql.SQLException
Throws:
java.sql.SQLException

getFetchSize

public int getFetchSize()
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

getRow

public int getRow()
           throws java.sql.SQLException
Throws:
java.sql.SQLException

getType

public int getType()
            throws java.sql.SQLException
Throws:
java.sql.SQLException

afterLast

public void afterLast()
               throws java.sql.SQLException
Cursor positoning is not implemented yet.

Throws:
java.sql.SQLException - indicating that this feature is not supported.

beforeFirst

public void beforeFirst()
                 throws java.sql.SQLException
Cursor positoning is not implemented yet.

Throws:
java.sql.SQLException - indicating that this feature is not supported.

close

public void close()
           throws java.sql.SQLException
Throws:
java.sql.SQLException

first

public boolean first()
              throws java.sql.SQLException
Cursor positioning is not implemented yet.

Throws:
java.sql.SQLException - indicating that this feature is not supported.

isAfterLast

public boolean isAfterLast()
                    throws java.sql.SQLException
Throws:
java.sql.SQLException

isBeforeFirst

public boolean isBeforeFirst()
                      throws java.sql.SQLException
Throws:
java.sql.SQLException

isFirst

public boolean isFirst()
                throws java.sql.SQLException
Throws:
java.sql.SQLException

isLast

public boolean isLast()
               throws java.sql.SQLException
Throws:
java.sql.SQLException

last

public boolean last()
             throws java.sql.SQLException
Cursor positioning is not implemented yet.

Throws:
java.sql.SQLException - indicating that this feature is not supported.

next

public boolean next()
             throws java.sql.SQLException
Throws:
java.sql.SQLException

previous

public boolean previous()
                 throws java.sql.SQLException
Reverse positioning is not implemented yet.

Throws:
java.sql.SQLException - indicating that this feature is not supported.

setFetchDirection

public void setFetchDirection(int direction)
                       throws java.sql.SQLException
Only ResultSet.FETCH_FORWARD is supported.

Throws:
java.sql.SQLException - indicating that this feature is not supported for other values on direction.

setFetchSize

public void setFetchSize(int fetchSize)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

absolute

public boolean absolute(int row)
                 throws java.sql.SQLException
Cursor positioning is not implemented yet.

Throws:
java.sql.SQLException - indicating that this feature is not supported.

relative

public boolean relative(int rows)
                 throws java.sql.SQLException
Cursor positioning is not implemented yet.

Throws:
java.sql.SQLException - indicating that this feature is not supported.

getCursorName

public java.lang.String getCursorName()
                               throws java.sql.SQLException
Throws:
java.sql.SQLException

findColumn

public int findColumn(java.lang.String columnName)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

getStatement

public java.sql.Statement getStatement()
                                throws java.sql.SQLException
Throws:
java.sql.SQLException

getPortal

protected final Portal getPortal()
                          throws java.sql.SQLException
Throws:
java.sql.SQLException

getTupleTable

protected final SPITupleTable getTupleTable()
                                     throws java.sql.SQLException
Throws:
java.sql.SQLException

getCurrentRow

protected final Tuple getCurrentRow()
                             throws java.sql.SQLException
Throws:
java.sql.SQLException

peekNext

protected final Tuple peekNext()
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

getObjectValue

protected java.lang.Object getObjectValue(int columnIndex)
                                   throws java.sql.SQLException
Specified by:
getObjectValue in class ObjectResultSet
Throws:
java.sql.SQLException


Copyright (c) 2003, 2004 TADA AB - Taby Sweden. Distributed under the terms shown in COPYRIGHT