forked from tada/pljava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRelation.java
More file actions
49 lines (45 loc) · 1.56 KB
/
Copy pathRelation.java
File metadata and controls
49 lines (45 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* This file contains software that has been made available under
* The Mozilla Public License 1.1. Use and distribution hereof are
* subject to the restrictions set forth therein.
*
* Copyright (c) 2003 TADA AB - Taby Sweden
* All Rights Reserved
*/
package org.postgresql.pljava;
import java.sql.SQLException;
/**
* The <code>Relation</code> correspons to the internal PostgreSQL
* <code>Relation</code>.
*
* @author Thomas Hallgren
*/
public class Relation extends NativeStruct
{
/**
* Returns the name of this <code>Relation</code>.
* @throws SQLException
*/
public native String getName()
throws SQLException;
/**
* Returns a descriptor that describes tuples in this <code>Relation</code>.
* @throws SQLException
*/
public native TupleDesc getTupleDesc()
throws SQLException;
/**
* Creates a new <code>Tuple</code> by substituting new values for selected columns
* copying the columns of the original <code>Tuple</code> at other positions. The
* original <code>Tuple</code> is not modified.<br/>
* @param original The tuple that serves as the source.
* @param fieldNumbers An array of one based indexes denoting the positions that
* are to receive modified values.
* @param values The array of new values. Each value in this array corresponds to
* an index in the <code>fieldNumbers</code> array.
* @return A copy of the original with modifications.
* @throws SQLException if indexes are out of range or the values illegal.
*/
public native Tuple modifyTuple(Tuple original, int[] fieldNumbers, Object[] values)
throws SQLException;
}