|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.postgresql.pljava.internal.JavaWrapper
org.postgresql.pljava.internal.TupleDesc
public class TupleDesc
The TupleDesc
correspons to the internal PostgreSQL
TupleDesc
.
Method Summary | |
---|---|
protected void |
_free(long pointer)
Calls the backend function FreeTupleDesc(TupleDesc desc) |
Tuple |
formTuple(java.lang.Object[] values)
Creates a Tuple that is described by this descriptor and
initialized with the supplied values . |
java.lang.Class |
getColumnClass(int index)
Returns the Java class of the column at index |
int |
getColumnIndex(java.lang.String colName)
Returns the index of the column named colName . |
java.lang.String |
getColumnName(int index)
Returns the name of the column at index . |
Oid |
getOid(int index)
Returns OID of the column type. |
int |
size()
Returns the number of columns in this tuple descriptor. |
Methods inherited from class org.postgresql.pljava.internal.JavaWrapper |
---|
finalize, getNativePointer |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getColumnName(int index) throws java.sql.SQLException
index
.
index
- The one based index of the column.
java.sql.SQLException
- If the index is out of range for this
tuple descriptor.public int getColumnIndex(java.lang.String colName) throws java.sql.SQLException
colName
.
colName
- The name of the column.
colName
.
java.sql.SQLException
- If no column with the given name can
be found in this tuple descriptor.public Tuple formTuple(java.lang.Object[] values) throws java.sql.SQLException
Tuple
that is described by this descriptor and
initialized with the supplied values
.
Tuple
.
java.sql.SQLException
- If the length of the values array does not
match the size of the descriptor or if the handle of this descriptor
has gone stale.public int size() throws java.sql.SQLException
java.sql.SQLException
public java.lang.Class getColumnClass(int index) throws java.sql.SQLException
java.sql.SQLException
public Oid getOid(int index) throws java.sql.SQLException
java.sql.SQLException
protected void _free(long pointer)
_free
in class JavaWrapper
pointer
- The native pointer to the source TupleDesc
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |