org.postgresql.pljava.jdbc
Class SQLOutputToChunk
java.lang.Object
org.postgresql.pljava.jdbc.SQLOutputToChunk
- All Implemented Interfaces:
- java.sql.SQLOutput
public class SQLOutputToChunk
- extends java.lang.Object
- implements java.sql.SQLOutput
The SQLOutputToChunk uses JNI to build a PostgreSQL StringInfo buffer in
memory. 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 |
SQLOutputToChunk
public SQLOutputToChunk(long handle)
writeArray
public void writeArray(java.sql.Array value)
throws java.sql.SQLException
- Specified by:
writeArray in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeAsciiStream
public void writeAsciiStream(java.io.InputStream value)
throws java.sql.SQLException
- Specified by:
writeAsciiStream in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeBigDecimal
public void writeBigDecimal(java.math.BigDecimal value)
throws java.sql.SQLException
- Specified by:
writeBigDecimal in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeBinaryStream
public void writeBinaryStream(java.io.InputStream value)
throws java.sql.SQLException
- Specified by:
writeBinaryStream in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeBlob
public void writeBlob(java.sql.Blob value)
throws java.sql.SQLException
- Specified by:
writeBlob in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeBoolean
public void writeBoolean(boolean value)
throws java.sql.SQLException
- Specified by:
writeBoolean in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeByte
public void writeByte(byte value)
throws java.sql.SQLException
- Specified by:
writeByte in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeBytes
public void writeBytes(byte[] buffer)
throws java.sql.SQLException
- Specified by:
writeBytes in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeCharacterStream
public void writeCharacterStream(java.io.Reader value)
throws java.sql.SQLException
- Specified by:
writeCharacterStream in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeClob
public void writeClob(java.sql.Clob value)
throws java.sql.SQLException
- Specified by:
writeClob in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeDate
public void writeDate(java.sql.Date value)
throws java.sql.SQLException
- Specified by:
writeDate in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeDouble
public void writeDouble(double value)
throws java.sql.SQLException
- Specified by:
writeDouble in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeFloat
public void writeFloat(float value)
throws java.sql.SQLException
- Specified by:
writeFloat in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeInt
public void writeInt(int value)
throws java.sql.SQLException
- Specified by:
writeInt in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeLong
public void writeLong(long value)
throws java.sql.SQLException
- Specified by:
writeLong in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeObject
public void writeObject(java.sql.SQLData value)
throws java.sql.SQLException
- Specified by:
writeObject in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeRef
public void writeRef(java.sql.Ref value)
throws java.sql.SQLException
- Specified by:
writeRef in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeShort
public void writeShort(short value)
throws java.sql.SQLException
- Specified by:
writeShort in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeString
public void writeString(java.lang.String value)
throws java.sql.SQLException
- Specified by:
writeString in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeStruct
public void writeStruct(java.sql.Struct value)
throws java.sql.SQLException
- Specified by:
writeStruct in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeTime
public void writeTime(java.sql.Time value)
throws java.sql.SQLException
- Specified by:
writeTime in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeTimestamp
public void writeTimestamp(java.sql.Timestamp value)
throws java.sql.SQLException
- Specified by:
writeTimestamp in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeURL
public void writeURL(java.net.URL value)
throws java.sql.SQLException
- Specified by:
writeURL in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeNClob
public void writeNClob(java.sql.NClob x)
throws java.sql.SQLException
- Specified by:
writeNClob in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeNString
public void writeNString(java.lang.String x)
throws java.sql.SQLException
- Specified by:
writeNString in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeRowId
public void writeRowId(java.sql.RowId x)
throws java.sql.SQLException
- Specified by:
writeRowId in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
writeSQLXML
public void writeSQLXML(java.sql.SQLXML x)
throws java.sql.SQLException
- Specified by:
writeSQLXML in interface java.sql.SQLOutput
- Throws:
java.sql.SQLException
Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \
Distributed under the terms shown in COPYRIGHT