org.postgresql.pljava.jdbc

Class SingleRowReader

Implemented Interfaces:
ResultSet

public class SingleRowReader
extends SingleRowResultSet

A single row, read-only ResultSet, specially made for functions and procedures that takes complex types as arguments (PostgreSQL 7.5 and later).

Constructor Summary

SingleRowReader(long pointer, TupleDesc tupleDesc)

Method Summary

protected void
_free(long pointer)
void
cancelRowUpdates()
This feature is not supported on a ReadOnlyResultSet.
void
close()
void
deleteRow()
This feature is not supported on a ReadOnlyResultSet.
void
finalize()
int
getConcurrency()
Returns ResultSet.CONCUR_READ_ONLY.
protected Object
getObjectValue(int columnIndex)
protected TupleDesc
getTupleDesc()
void
insertRow()
This feature is not supported on a ReadOnlyResultSet.
void
moveToInsertRow()
This feature is not supported on a ReadOnlyResultSet.
boolean
rowUpdated()
Always returns false.
void
updateObject(int columnIndex, Object x)
This feature is not supported on a ReadOnlyResultSet.
void
updateObject(int columnIndex, Object x, int scale)
This feature is not supported on a ReadOnlyResultSet.
void
updateRow()
This feature is not supported on a ReadOnlyResultSet.

Methods inherited from class org.postgresql.pljava.jdbc.SingleRowResultSet

absolute, afterLast, beforeFirst, deleteRow, findColumn, first, getConcurrency, getFetchDirection, getFetchSize, getMetaData, getRow, getTupleDesc, getType, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, relative, rowDeleted, rowInserted, setFetchDirection, setFetchSize, 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, 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

Constructor Details

SingleRowReader

public SingleRowReader(long pointer,
                       TupleDesc tupleDesc)
            throws SQLException

Method Details

_free

protected void _free(long pointer)

cancelRowUpdates

public void cancelRowUpdates()
            throws SQLException
This feature is not supported on a ReadOnlyResultSet.

close

public void close()

deleteRow

public void deleteRow()
            throws SQLException
This feature is not supported on a ReadOnlyResultSet.
Overrides:
deleteRow in interface SingleRowResultSet

finalize

public void finalize()

getConcurrency

public int getConcurrency()
            throws SQLException
Returns ResultSet.CONCUR_READ_ONLY.
Overrides:
getConcurrency in interface SingleRowResultSet

getObjectValue

protected Object getObjectValue(int columnIndex)
            throws SQLException
Overrides:
getObjectValue in interface ObjectResultSet

getTupleDesc

protected final TupleDesc getTupleDesc()
Overrides:
getTupleDesc in interface SingleRowResultSet

insertRow

public void insertRow()
            throws SQLException
This feature is not supported on a ReadOnlyResultSet.
Overrides:
insertRow in interface SingleRowResultSet

moveToInsertRow

public void moveToInsertRow()
            throws SQLException
This feature is not supported on a ReadOnlyResultSet.
Overrides:
moveToInsertRow in interface SingleRowResultSet

rowUpdated

public boolean rowUpdated()
            throws SQLException
Always returns false.

updateObject

public void updateObject(int columnIndex,
                         Object x)
            throws SQLException
This feature is not supported on a ReadOnlyResultSet.

updateObject

public void updateObject(int columnIndex,
                         Object x,
                         int scale)
            throws SQLException
This feature is not supported on a ReadOnlyResultSet.
Overrides:
updateObject in interface SingleRowResultSet

updateRow

public void updateRow()
            throws SQLException
This feature is not supported on a ReadOnlyResultSet.
Overrides:
updateRow in interface SingleRowResultSet

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