org.postgresql.pljava.jdbc

Class SQLInputFromChunk

Implemented Interfaces:
SQLInput

public class SQLInputFromChunk
extends java.lang.Object
implements SQLInput

The SQLInputToChunk uses JNI to read from memory that has been allocated by the PostgreSQL backend. A user should never make an attempt to create an instance of this class. Only internal JNI routines can do that. An instance is propagated in a call from the internal JNI layer to the Java layer will only survive during that single call. The handle of the instance will be invalidated when the call returns and subsequent use of the instance will yield a SQLException with the message "Stream is closed".

Constructor Summary

SQLInputFromChunk(long handle, int chunkSize)

Method Summary

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()

Constructor Details

SQLInputFromChunk

public SQLInputFromChunk(long handle,
                         int chunkSize)

Method Details

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