org.postgresql.pljava.jdbc
Class SQLInputFromChunk
java.lang.Object
org.postgresql.pljava.jdbc.SQLInputFromChunk
- All Implemented Interfaces:
- java.sql.SQLInput
public class SQLInputFromChunk
- extends java.lang.Object
- implements java.sql.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".
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLInputFromChunk
public SQLInputFromChunk(long handle,
int chunkSize)
readArray
public java.sql.Array readArray()
throws java.sql.SQLException
- Specified by:
readArray
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readAsciiStream
public java.io.InputStream readAsciiStream()
throws java.sql.SQLException
- Specified by:
readAsciiStream
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readBigDecimal
public java.math.BigDecimal readBigDecimal()
throws java.sql.SQLException
- Specified by:
readBigDecimal
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readBinaryStream
public java.io.InputStream readBinaryStream()
throws java.sql.SQLException
- Specified by:
readBinaryStream
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readBlob
public java.sql.Blob readBlob()
throws java.sql.SQLException
- Specified by:
readBlob
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readBoolean
public boolean readBoolean()
throws java.sql.SQLException
- Specified by:
readBoolean
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readByte
public byte readByte()
throws java.sql.SQLException
- Specified by:
readByte
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readBytes
public byte[] readBytes()
throws java.sql.SQLException
- Specified by:
readBytes
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readCharacterStream
public java.io.Reader readCharacterStream()
throws java.sql.SQLException
- Specified by:
readCharacterStream
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readClob
public java.sql.Clob readClob()
throws java.sql.SQLException
- Specified by:
readClob
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readDate
public java.sql.Date readDate()
throws java.sql.SQLException
- Specified by:
readDate
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readDouble
public double readDouble()
throws java.sql.SQLException
- Specified by:
readDouble
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readFloat
public float readFloat()
throws java.sql.SQLException
- Specified by:
readFloat
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readInt
public int readInt()
throws java.sql.SQLException
- Specified by:
readInt
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readLong
public long readLong()
throws java.sql.SQLException
- Specified by:
readLong
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readObject
public java.lang.Object readObject()
throws java.sql.SQLException
- Specified by:
readObject
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readRef
public java.sql.Ref readRef()
throws java.sql.SQLException
- Specified by:
readRef
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readShort
public short readShort()
throws java.sql.SQLException
- Specified by:
readShort
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readString
public java.lang.String readString()
throws java.sql.SQLException
- Specified by:
readString
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readTime
public java.sql.Time readTime()
throws java.sql.SQLException
- Specified by:
readTime
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readTimestamp
public java.sql.Timestamp readTimestamp()
throws java.sql.SQLException
- Specified by:
readTimestamp
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readURL
public java.net.URL readURL()
throws java.sql.SQLException
- Specified by:
readURL
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
wasNull
public boolean wasNull()
throws java.sql.SQLException
- Specified by:
wasNull
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readRowId
public java.sql.RowId readRowId()
throws java.sql.SQLException
- Specified by:
readRowId
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readSQLXML
public java.sql.SQLXML readSQLXML()
throws java.sql.SQLException
- Specified by:
readSQLXML
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readNString
public java.lang.String readNString()
throws java.sql.SQLException
- Specified by:
readNString
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
readNClob
public java.sql.NClob readNClob()
throws java.sql.SQLException
- Specified by:
readNClob
in interface java.sql.SQLInput
- Throws:
java.sql.SQLException
Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \
Distributed under the terms shown in COPYRIGHT