org.postgresql.pljava.jdbc

Class SingleRowResultSet

Implemented Interfaces:
ResultSet
Known Direct Subclasses:
SingleRowReader, SingleRowWriter, TriggerResultSet

public abstract class SingleRowResultSet
extends ObjectResultSet

A single row ResultSet

Method Summary

boolean
absolute(int row)
Cursor positioning is not supported.
void
afterLast()
Cursor positoning is not implemented.
void
beforeFirst()
Cursor positoning is not implemented.
void
deleteRow()
This feature is not supported.
int
findColumn(String columnName)
boolean
first()
Cursor positioning is not implemented.
int
getConcurrency()
int
getFetchDirection()
int
getFetchSize()
ResultSetMetaData
getMetaData()
Returns the metadata for this result set.
int
getRow()
protected abstract TupleDesc
getTupleDesc()
int
getType()
void
insertRow()
This feature is not supported.
boolean
isAfterLast()
Returns false.
boolean
isBeforeFirst()
Will always return false since a SingleRowWriter starts on the one and only row.
boolean
isFirst()
Returns true.
boolean
isLast()
Returns true.
boolean
last()
Cursor positioning is not implemented.
void
moveToCurrentRow()
This is a no-op since the moveToInsertRow() method is unsupported.
void
moveToInsertRow()
This feature is not supported on a SingleRowWriter.
boolean
next()
This method will always return false but it will not change the state of the ResultSet.
boolean
previous()
This method will always return false but it will not change the state of the ResultSet.
boolean
relative(int rows)
Cursor positioning is not supported.
boolean
rowDeleted()
Will always return false.
boolean
rowInserted()
Will always return false.
void
setFetchDirection(int direction)
Only java.sql.ResultSet.FETCH_FORWARD is supported.
void
setFetchSize(int fetchSize)
Only permitted value for fetchSize is 1.
void
updateObject(int columnIndex, Object x, int scale)
The scale is not really supported.
void
updateRow()
This is a noop.

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, getObjectValue, getRef, getShort, getString, getTime, getTime, getTimestamp, getTimestamp, getURL, getUnicodeStream, 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, getURL, getUnicodeStream, updateArray, updateAsciiStream, updateBigDecimal, updateBinaryStream, updateBlob, updateBoolean, updateByte, updateBytes, updateCharacterStream, updateClob, updateDate, updateDouble, updateFloat, updateInt, updateLong, updateNull, updateObject, updateObject, updateRef, updateShort, updateString, updateTime, updateTimestamp

Method Details

absolute

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

afterLast

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

beforeFirst

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

deleteRow

public void deleteRow()
            throws SQLException
This feature is not supported.

findColumn

public int findColumn(String columnName)
            throws SQLException

first

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

getConcurrency

public int getConcurrency()
            throws SQLException

getFetchDirection

public int getFetchDirection()
            throws SQLException

getFetchSize

public int getFetchSize()
            throws SQLException

getMetaData

public ResultSetMetaData getMetaData()
            throws SQLException
Returns the metadata for this result set.
Overrides:
getMetaData in interface ObjectResultSet

getRow

public int getRow()
            throws SQLException

getTupleDesc

protected abstract TupleDesc getTupleDesc()
            throws SQLException

getType

public int getType()
            throws SQLException

insertRow

public void insertRow()
            throws SQLException
This feature is not supported.

isAfterLast

public boolean isAfterLast()
            throws SQLException
Returns false.

isBeforeFirst

public boolean isBeforeFirst()
            throws SQLException
Will always return false since a SingleRowWriter starts on the one and only row.

isFirst

public boolean isFirst()
            throws SQLException
Returns true.

isLast

public boolean isLast()
            throws SQLException
Returns true.

last

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

moveToCurrentRow

public void moveToCurrentRow()
            throws SQLException
This is a no-op since the moveToInsertRow() method is unsupported.

moveToInsertRow

public void moveToInsertRow()
            throws SQLException
This feature is not supported on a SingleRowWriter.

next

public boolean next()
            throws SQLException
This method will always return false but it will not change the state of the ResultSet.

previous

public boolean previous()
            throws SQLException
This method will always return false but it will not change the state of the ResultSet.

relative

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

rowDeleted

public boolean rowDeleted()
            throws SQLException
Will always return false.

rowInserted

public boolean rowInserted()
            throws SQLException
Will always return false.

setFetchDirection

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

setFetchSize

public void setFetchSize(int fetchSize)
            throws SQLException
Only permitted value for fetchSize is 1.

updateObject

public void updateObject(int columnIndex,
                         Object x,
                         int scale)
            throws SQLException
The scale is not really supported. This method just strips it off and calls updateObject(int, Object)

updateRow

public void updateRow()
            throws SQLException
This is a noop.

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