java.lang.Object
org.postgresql.pljava.jdbc.SQLOutputToTuple
- All Implemented Interfaces:
SQLOutput
Implementation of
SQLOutput
for the case of a composite data type.- Author:
- Thomas Hallgren
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
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
void
writeBoolean
(boolean value) void
writeByte
(byte value) void
writeBytes
(byte[] value) void
writeCharacterStream
(Reader value) void
void
void
writeDouble
(double value) void
writeFloat
(float value) void
writeInt
(int value) void
writeLong
(long value) void
writeNClob
(NClob x) void
void
writeObject
(SQLData value) void
void
writeRowId
(RowId x) void
writeShort
(short value) void
void
writeString
(String value) void
writeStruct
(Struct value) void
void
writeTimestamp
(Timestamp value) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.sql.SQLOutput
writeObject
-
Constructor Details
-
SQLOutputToTuple
-
-
Method Details
-
getTuple
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.
- Throws:
SQLException
-
writeArray
- Specified by:
writeArray
in interfaceSQLOutput
- Throws:
SQLException
-
writeAsciiStream
- Specified by:
writeAsciiStream
in interfaceSQLOutput
- Throws:
SQLException
-
writeBigDecimal
- Specified by:
writeBigDecimal
in interfaceSQLOutput
- Throws:
SQLException
-
writeBinaryStream
- Specified by:
writeBinaryStream
in interfaceSQLOutput
- Throws:
SQLException
-
writeBlob
- Specified by:
writeBlob
in interfaceSQLOutput
- Throws:
SQLException
-
writeBoolean
- Specified by:
writeBoolean
in interfaceSQLOutput
- Throws:
SQLException
-
writeByte
- Specified by:
writeByte
in interfaceSQLOutput
- Throws:
SQLException
-
writeBytes
- Specified by:
writeBytes
in interfaceSQLOutput
- Throws:
SQLException
-
writeCharacterStream
- Specified by:
writeCharacterStream
in interfaceSQLOutput
- Throws:
SQLException
-
writeClob
- Specified by:
writeClob
in interfaceSQLOutput
- Throws:
SQLException
-
writeDate
- Specified by:
writeDate
in interfaceSQLOutput
- Throws:
SQLException
-
writeDouble
- Specified by:
writeDouble
in interfaceSQLOutput
- Throws:
SQLException
-
writeFloat
- Specified by:
writeFloat
in interfaceSQLOutput
- Throws:
SQLException
-
writeInt
- Specified by:
writeInt
in interfaceSQLOutput
- Throws:
SQLException
-
writeLong
- Specified by:
writeLong
in interfaceSQLOutput
- Throws:
SQLException
-
writeObject
- Specified by:
writeObject
in interfaceSQLOutput
- Throws:
SQLException
-
writeRef
- Specified by:
writeRef
in interfaceSQLOutput
- Throws:
SQLException
-
writeShort
- Specified by:
writeShort
in interfaceSQLOutput
- Throws:
SQLException
-
writeString
- Specified by:
writeString
in interfaceSQLOutput
- Throws:
SQLException
-
writeStruct
- Specified by:
writeStruct
in interfaceSQLOutput
- Throws:
SQLException
-
writeTime
- Specified by:
writeTime
in interfaceSQLOutput
- Throws:
SQLException
-
writeTimestamp
- Specified by:
writeTimestamp
in interfaceSQLOutput
- Throws:
SQLException
-
writeURL
- Specified by:
writeURL
in interfaceSQLOutput
- Throws:
SQLException
-
writeSQLXML
- Specified by:
writeSQLXML
in interfaceSQLOutput
- Throws:
SQLException
-
writeNClob
- Specified by:
writeNClob
in interfaceSQLOutput
- Throws:
SQLException
-
writeNString
- Specified by:
writeNString
in interfaceSQLOutput
- Throws:
SQLException
-
writeRowId
- Specified by:
writeRowId
in interfaceSQLOutput
- Throws:
SQLException
-