org.postgresql.pljava.internal
Class Relation
java.lang.Object
org.postgresql.pljava.internal.NativeStruct
org.postgresql.pljava.internal.Relation
public class Relation
- extends NativeStruct
The Relation
correspons to the internal PostgreSQL
Relation
.
Method Summary |
java.lang.String |
getName()
Returns the name of this Relation . |
TupleDesc |
getTupleDesc()
Returns a descriptor that describes tuples in this Relation . |
Tuple |
modifyTuple(Tuple original,
int[] fieldNumbers,
java.lang.Object[] values)
Creates a new Tuple by substituting new values for selected columns
copying the columns of the original Tuple at other positions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Relation
public Relation()
getName
public java.lang.String getName()
throws java.sql.SQLException
- Returns the name of this
Relation
.
- Throws:
java.sql.SQLException
getTupleDesc
public TupleDesc getTupleDesc()
throws java.sql.SQLException
- Returns a descriptor that describes tuples in this
Relation
.
- Throws:
java.sql.SQLException
modifyTuple
public Tuple modifyTuple(Tuple original,
int[] fieldNumbers,
java.lang.Object[] values)
throws java.sql.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.
- Parameters:
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.
- Returns:
- A copy of the original with modifications.
- Throws:
java.sql.SQLException
- if indexes are out of range or the values illegal.
Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. Distributed under the terms shown in COPYRIGHT