org.postgresql.pljava.internal
Class HeapTupleHeader

java.lang.Object
  extended by org.postgresql.pljava.internal.JavaWrapper
      extended by org.postgresql.pljava.internal.HeapTupleHeader

public class HeapTupleHeader
extends JavaWrapper

The HeapTupleHeader correspons to the internal PostgreSQL HeapTupleHeader struct.


Method Summary
protected  void _free(long pointer)
          Calls the C function pfree() with the given pointer as an argument.
 java.lang.Object getObject(int index)
          Obtains a value from the underlying native HeapTupleHeader structure.
 TupleDesc getTupleDesc()
          Obtains the TupleDesc that describes the tuple and returns it.
 
Methods inherited from class org.postgresql.pljava.internal.JavaWrapper
finalize, getNativePointer
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getObject

public final java.lang.Object getObject(int index)
                                 throws java.sql.SQLException
Obtains a value from the underlying native HeapTupleHeader structure.

Parameters:
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.

getTupleDesc

public final TupleDesc getTupleDesc()
Obtains the TupleDesc that describes the tuple and returns it.

Returns:
The TupleDesc that describes this tuple.

_free

protected void _free(long pointer)
Description copied from class: JavaWrapper
Calls the C function pfree() with the given pointer as an argument. Subclasses may override this method if special handling is needed when freeing up the object.

Overrides:
_free in class JavaWrapper
Parameters:
pointer - The pointer to free.


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