org.postgresql.pljava.internal

Class Tuple


public class Tuple
extends JavaWrapper

The Tuple correspons to the internal PostgreSQL HeapTuple.

Method Summary

protected void
_free(long pointer)
Calls the backend function heap_freetuple(HeapTuple tuple)
Object
getObject(TupleDesc tupleDesc, int index)
Obtains a value from the underlying native HeapTuple structure.

Methods inherited from class org.postgresql.pljava.internal.JavaWrapper

_free, finalize, getNativePointer

Method Details

_free

protected void _free(long pointer)
Calls the backend function heap_freetuple(HeapTuple tuple)
Overrides:
_free in interface JavaWrapper
Parameters:
pointer - The native pointer to the source HeapTuple

getObject

public Object getObject(TupleDesc tupleDesc,
                        int index)
            throws 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.

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