org.postgresql.pljava.jdbc
Class SyntheticResultSet

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.SyntheticResultSet
All Implemented Interfaces:
ResultSet

public class SyntheticResultSet
extends ReadOnlyResultSet

A Synthetic ResultSet that provides direct access to data stored in a ArrayList. This kind of ResultSet has nothing common with any statement.

Author:
Filip Hrbek

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(String columnName)
           
 boolean first()
          Cursor positioning is not implemented yet.
protected  Object[] getCurrentRow()
           
 int getFetchDirection()
           
 int getFetchSize()
           
 ResultSetMetaData getMetaData()
          ResultSetMetaData is not yet supported.
protected  Object getObjectValue(int columnIndex)
           
 int getRow()
           
 int getType()
           
 boolean isAfterLast()
           
 boolean isBeforeFirst()
           
 boolean isFirst()
           
 boolean isLast()
           
 boolean last()
          Cursor positioning is not implemented yet.
 boolean next()
           
 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, 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, getCursorName, getDate, getDate, getDouble, getFloat, getInt, getLong, getObject, getObject, getRef, getShort, getStatement, 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

close

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

findColumn

public int findColumn(String columnName)
               throws SQLException
Throws:
SQLException

getObjectValue

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

getCurrentRow

protected final Object[] getCurrentRow()
                                throws SQLException
Throws:
SQLException

isLast

public boolean isLast()
               throws SQLException
Throws:
SQLException

next

public boolean next()
             throws SQLException
Throws:
SQLException

getMetaData

public ResultSetMetaData getMetaData()
                              throws SQLException
Description copied from class: ObjectResultSet
ResultSetMetaData is not yet supported.

Specified by:
getMetaData in interface ResultSet
Overrides:
getMetaData in class ObjectResultSet
Throws:
SQLException - indicating that this feature is not supported.

getFetchDirection

public int getFetchDirection()
                      throws SQLException
Throws:
SQLException

getFetchSize

public final int getFetchSize()
                       throws SQLException
Throws:
SQLException

getRow

public final int getRow()
                 throws SQLException
Throws:
SQLException

getType

public int getType()
            throws SQLException
Throws:
SQLException

afterLast

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

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

beforeFirst

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

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

first

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

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

isAfterLast

public boolean isAfterLast()
                    throws SQLException
Throws:
SQLException

isBeforeFirst

public boolean isBeforeFirst()
                      throws SQLException
Throws:
SQLException

isFirst

public boolean isFirst()
                throws SQLException
Throws:
SQLException

last

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

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

previous

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

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

absolute

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

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

relative

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

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

setFetchDirection

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

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

setFetchSize

public void setFetchSize(int fetchSize)
                  throws SQLException
Throws:
SQLException