org.postgresql.pljava.jdbc

Class SQLInputFromTuple

Implemented Interfaces:
SQLInput

public class SQLInputFromTuple
extends JavaWrapper
implements SQLInput

A single row, updateable ResultSet specially made for triggers. The changes made to this ResultSet are remembered and converted to a SPI_modify_tuple call prior to function return.

Constructor Summary

SQLInputFromTuple(long heapTupleHeaderPointer, TupleDesc tupleDesc)

Method Summary

protected void
_free(long pointer)
Calls the C function pfree() with the given pointer as an argument.
Array
readArray()
InputStream
readAsciiStream()
BigDecimal
readBigDecimal()
InputStream
readBinaryStream()
Blob
readBlob()
boolean
readBoolean()
byte
readByte()
byte[]
readBytes()
Reader
readCharacterStream()
Clob
readClob()
Date
readDate()
double
readDouble()
float
readFloat()
int
readInt()
long
readLong()
Object
readObject()
Ref
readRef()
short
readShort()
String
readString()
Time
readTime()
Timestamp
readTimestamp()
URL
readURL()
boolean
wasNull()

Methods inherited from class org.postgresql.pljava.internal.JavaWrapper

_free, finalize, getNativePointer

Constructor Details

SQLInputFromTuple

public SQLInputFromTuple(long heapTupleHeaderPointer,
                         TupleDesc tupleDesc)
            throws SQLException

Method Details

_free

protected void _free(long pointer)
Calls the C function pfree() with the given pointer as an argument. Subclasses may override this method if special handling is needed when freeing up the object.
Overrides:
_free in interface JavaWrapper
Parameters:
pointer - The pointer to free.

readArray

public Array readArray()
            throws SQLException

readAsciiStream

public InputStream readAsciiStream()
            throws SQLException

readBigDecimal

public BigDecimal readBigDecimal()
            throws SQLException

readBinaryStream

public InputStream readBinaryStream()
            throws SQLException

readBlob

public Blob readBlob()
            throws SQLException

readBoolean

public boolean readBoolean()
            throws SQLException

readByte

public byte readByte()
            throws SQLException

readBytes

public byte[] readBytes()
            throws SQLException

readCharacterStream

public Reader readCharacterStream()
            throws SQLException

readClob

public Clob readClob()
            throws SQLException

readDate

public Date readDate()
            throws SQLException

readDouble

public double readDouble()
            throws SQLException

readFloat

public float readFloat()
            throws SQLException

readInt

public int readInt()
            throws SQLException

readLong

public long readLong()
            throws SQLException

readObject

public Object readObject()
            throws SQLException

readRef

public Ref readRef()
            throws SQLException

readShort

public short readShort()
            throws SQLException

readString

public String readString()
            throws SQLException

readTime

public Time readTime()
            throws SQLException

readTimestamp

public Timestamp readTimestamp()
            throws SQLException

readURL

public URL readURL()
            throws SQLException

wasNull

public boolean wasNull()
            throws SQLException

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