org.postgresql.pljava.internal
Class Tuple

java.lang.Object
  extended by org.postgresql.pljava.internal.NativeStruct
      extended by org.postgresql.pljava.internal.Tuple

public class Tuple
extends NativeStruct

The Tuple correspons to the internal PostgreSQL HeapTuple.


Constructor Summary
Tuple()
           
 
Method Summary
 java.lang.Object getObject(TupleDesc tupleDesc, int index)
          Obtains a value from the underlying native HeapTuple structure.
 
Methods inherited from class org.postgresql.pljava.internal.NativeStruct
getNative, invalidate, isValid, releasePointer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tuple

public Tuple()
Method Detail

getObject

public java.lang.Object getObject(TupleDesc tupleDesc,
                                  int index)
                           throws java.sql.SQLException
Obtains a value from the underlying native HeapTuple structure.

Parameters:
tupleDesc - The Tuple descriptor for this instance.
index - Index of value in the structure (one based).
Returns:
The value or null.
Throws:
java.sql.SQLException - If the underlying native structure has gone stale.


Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. Distributed under the terms shown in COPYRIGHT