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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetTuple()Creates a tuple from the written values and returns its native pointer.voidwriteArray(Array value) voidwriteAsciiStream(InputStream value) voidwriteBigDecimal(BigDecimal value) voidwriteBinaryStream(InputStream value) voidvoidwriteBoolean(boolean value) voidwriteByte(byte value) voidwriteBytes(byte[] value) voidwriteCharacterStream(Reader value) voidvoidvoidwriteDouble(double value) voidwriteFloat(float value) voidwriteInt(int value) voidwriteLong(long value) voidwriteNClob(NClob x) voidvoidwriteObject(SQLData value) voidvoidwriteRowId(RowId x) voidwriteShort(short value) voidvoidwriteString(String value) voidwriteStruct(Struct value) voidvoidwriteTimestamp(Timestamp value) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
writeArrayin interfaceSQLOutput- Throws:
SQLException
-
writeAsciiStream
- Specified by:
writeAsciiStreamin interfaceSQLOutput- Throws:
SQLException
-
writeBigDecimal
- Specified by:
writeBigDecimalin interfaceSQLOutput- Throws:
SQLException
-
writeBinaryStream
- Specified by:
writeBinaryStreamin interfaceSQLOutput- Throws:
SQLException
-
writeBlob
- Specified by:
writeBlobin interfaceSQLOutput- Throws:
SQLException
-
writeBoolean
- Specified by:
writeBooleanin interfaceSQLOutput- Throws:
SQLException
-
writeByte
- Specified by:
writeBytein interfaceSQLOutput- Throws:
SQLException
-
writeBytes
- Specified by:
writeBytesin interfaceSQLOutput- Throws:
SQLException
-
writeCharacterStream
- Specified by:
writeCharacterStreamin interfaceSQLOutput- Throws:
SQLException
-
writeClob
- Specified by:
writeClobin interfaceSQLOutput- Throws:
SQLException
-
writeDate
- Specified by:
writeDatein interfaceSQLOutput- Throws:
SQLException
-
writeDouble
- Specified by:
writeDoublein interfaceSQLOutput- Throws:
SQLException
-
writeFloat
- Specified by:
writeFloatin interfaceSQLOutput- Throws:
SQLException
-
writeInt
- Specified by:
writeIntin interfaceSQLOutput- Throws:
SQLException
-
writeLong
- Specified by:
writeLongin interfaceSQLOutput- Throws:
SQLException
-
writeObject
- Specified by:
writeObjectin interfaceSQLOutput- Throws:
SQLException
-
writeRef
- Specified by:
writeRefin interfaceSQLOutput- Throws:
SQLException
-
writeShort
- Specified by:
writeShortin interfaceSQLOutput- Throws:
SQLException
-
writeString
- Specified by:
writeStringin interfaceSQLOutput- Throws:
SQLException
-
writeStruct
- Specified by:
writeStructin interfaceSQLOutput- Throws:
SQLException
-
writeTime
- Specified by:
writeTimein interfaceSQLOutput- Throws:
SQLException
-
writeTimestamp
- Specified by:
writeTimestampin interfaceSQLOutput- Throws:
SQLException
-
writeURL
- Specified by:
writeURLin interfaceSQLOutput- Throws:
SQLException
-
writeSQLXML
- Specified by:
writeSQLXMLin interfaceSQLOutput- Throws:
SQLException
-
writeNClob
- Specified by:
writeNClobin interfaceSQLOutput- Throws:
SQLException
-
writeNString
- Specified by:
writeNStringin interfaceSQLOutput- Throws:
SQLException
-
writeRowId
- Specified by:
writeRowIdin interfaceSQLOutput- Throws:
SQLException
-