org.postgresql.pljava.internal
Class Relation
The Relation
correspons to the internal PostgreSQL
Relation
.
protected void | _free(long pointer) - Calls the C function pfree() with the given pointer as an argument.
|
String | getName() - Returns the name of this
Relation .
|
String | getSchema() - Returns the schema name of this
Relation .
|
TupleDesc | getTupleDesc() - Returns a descriptor that describes tuples in this
Relation .
|
Tuple | modifyTuple(Tuple original, int[] fieldNumbers, Object[] values) - Creates a new
Tuple by substituting new values for selected columns
copying the columns of the original Tuple at other positions.
|
_free
protected void _free(long pointer)
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.
- _free in interface JavaWrapper
pointer
- The pointer to free.
getName
public String getName()
throws SQLException
Returns the name of this Relation
.
getSchema
public String getSchema()
throws SQLException
Returns the schema name of this Relation
.
getTupleDesc
public TupleDesc getTupleDesc()
throws SQLException
Returns a descriptor that describes tuples in this Relation
.
modifyTuple
public Tuple modifyTuple(Tuple original,
int[] fieldNumbers,
Object[] values)
throws SQLException
Creates a new Tuple
by substituting new values for selected columns
copying the columns of the original Tuple
at other positions. The
original Tuple
is not modified.
original
- The tuple that serves as the source.fieldNumbers
- An array of one based indexes denoting the positions that
are to receive modified values.values
- The array of new values. Each value in this array corresponds to
an index in the fieldNumbers
array.
- A copy of the original with modifications.
Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \
Distributed under the terms shown in COPYRIGHT