org.postgresql.pljava.jdbc

Class SQLOutputToTuple

Implemented Interfaces:
SQLOutput

public class SQLOutputToTuple
extends java.lang.Object
implements SQLOutput

Constructor Summary

SQLOutputToTuple(TupleDesc tupleDesc)

Method Summary

long
getTuple()
Creates a tuple from the written values and returns its native pointer.
void
writeArray(Array value)
void
writeAsciiStream(InputStream value)
void
writeBigDecimal(BigDecimal value)
void
writeBinaryStream(InputStream value)
void
writeBlob(Blob value)
void
writeBoolean(boolean value)
void
writeByte(byte value)
void
writeBytes(byte[] value)
void
writeCharacterStream(Reader value)
void
writeClob(Clob value)
void
writeDate(Date value)
void
writeDouble(double value)
void
writeFloat(float value)
void
writeInt(int value)
void
writeLong(long value)
void
writeObject(SQLData value)
void
writeRef(Ref value)
void
writeShort(short value)
void
writeString(String value)
void
writeStruct(Struct value)
void
writeTime(Time value)
void
writeTimestamp(Timestamp value)
void
writeURL(URL value)

Constructor Details

SQLOutputToTuple

public SQLOutputToTuple(TupleDesc tupleDesc)

Method Details

getTuple

public long getTuple()
            throws SQLException
Creates a tuple from the written values and returns its native pointer. All values must have been written. This method is called automatically by the trigger handler and should not be called in any other way.
Returns:
The Tuple reflecting the current row values.

writeArray

public void writeArray(Array value)
            throws SQLException

writeAsciiStream

public void writeAsciiStream(InputStream value)
            throws SQLException

writeBigDecimal

public void writeBigDecimal(BigDecimal value)
            throws SQLException

writeBinaryStream

public void writeBinaryStream(InputStream value)
            throws SQLException

writeBlob

public void writeBlob(Blob value)
            throws SQLException

writeBoolean

public void writeBoolean(boolean value)
            throws SQLException

writeByte

public void writeByte(byte value)
            throws SQLException

writeBytes

public void writeBytes(byte[] value)
            throws SQLException

writeCharacterStream

public void writeCharacterStream(Reader value)
            throws SQLException

writeClob

public void writeClob(Clob value)
            throws SQLException

writeDate

public void writeDate(Date value)
            throws SQLException

writeDouble

public void writeDouble(double value)
            throws SQLException

writeFloat

public void writeFloat(float value)
            throws SQLException

writeInt

public void writeInt(int value)
            throws SQLException

writeLong

public void writeLong(long value)
            throws SQLException

writeObject

public void writeObject(SQLData value)
            throws SQLException

writeRef

public void writeRef(Ref value)
            throws SQLException

writeShort

public void writeShort(short value)
            throws SQLException

writeString

public void writeString(String value)
            throws SQLException

writeStruct

public void writeStruct(Struct value)
            throws SQLException

writeTime

public void writeTime(Time value)
            throws SQLException

writeTimestamp

public void writeTimestamp(Timestamp value)
            throws SQLException

writeURL

public void writeURL(URL value)
            throws SQLException

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