org.postgresql.pljava.internal
Class SPITupleTable

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

public class SPITupleTable
extends NativeStruct

The SPITupleTable correspons to the internal PostgreSQL SPITupleTable type.


Constructor Summary
SPITupleTable()
           
 
Method Summary
 int getCount()
          Returns the number of Tuple instances contained in this table.
 Tuple getSlot(int position)
          Returns the Tuple at the given index.
 TupleDesc getTupleDesc()
          Returns the TupleDesc for the Tuple instances of this table.
 void invalidate()
          Invalidates this structure and call the internal function SPI_freetuptable to free up memory.
 
Methods inherited from class org.postgresql.pljava.internal.NativeStruct
getNative, isValid, releasePointer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPITupleTable

public SPITupleTable()
Method Detail

getCount

public int getCount()
             throws java.sql.SQLException
Returns the number of Tuple instances contained in this table.

Throws:
java.sql.SQLException

getSlot

public Tuple getSlot(int position)
              throws java.sql.SQLException
Returns the Tuple at the given index.

Parameters:
position - Index of desired slot. First slot has index zero.
Throws:
java.sql.SQLException

getTupleDesc

public TupleDesc getTupleDesc()
                       throws java.sql.SQLException
Returns the TupleDesc for the Tuple instances of this table.

Throws:
java.sql.SQLException

invalidate

public void invalidate()
Invalidates this structure and call the internal function SPI_freetuptable to free up memory.

Overrides:
invalidate in class NativeStruct


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