java.lang.Object
org.postgresql.pljava.internal.Tuple
The
Tuple
correspons to the internal PostgreSQL
HeapTuple
.- Author:
- Thomas Hallgren
-
Method Summary
Modifier and TypeMethodDescriptionfinal long
Return pointer to native HeapTuple structure as a long; use only while a reference to this class is live and the THREADLOCK is held.Obtains a value from the underlying nativeHeapTuple
structure.
-
Method Details
-
getNativePointer
Return pointer to native HeapTuple structure as a long; use only while a reference to this class is live and the THREADLOCK is held.- Throws:
SQLException
-
getObject
Obtains a value from the underlying nativeHeapTuple
structure.Conversion to a JDBC 4.1 specified class is best effort, if the native type system knows how to do so; otherwise, the return value can be whatever would have been returned in the legacy case. Caller beware!
- Parameters:
tupleDesc
- The Tuple descriptor for this instance.index
- Index of value in the structure (one based).type
- Desired Java class of the result, if the JDBC 4.1 version ofgetObject
has been called; null in all the legacy cases.- Returns:
- The value or
null
. - Throws:
SQLException
- If the underlying native structure has gone stale.
-