| org.apache.derby.iapi.sql.ResultColumnDescriptor
All known Subclasses: org.apache.derby.impl.sql.compile.ResultColumn, org.apache.derby.impl.sql.GenericColumnDescriptor,
ResultColumnDescriptor | public interface ResultColumnDescriptor (Code) | | A ResultColumnDescriptor describes a result column in a ResultSet.
author: Jeff Lichtman |
Method Summary | |
int | getColumnPosition() Get the position of the Column. | String | getName() Returns the name of the Column. | String | getSourceSchemaName() Get the name of the schema for the Column's base table, if any.
Following example queries will all return APP (assuming user is in schema APP)
select t.a from t
select b.a from t as b
select app.t.a from t
The name of the schema of the Column's base table. | String | getSourceTableName() Get the name of the underlying(base) table this column comes from, if any.
Following example queries will all return T
select a from t
select b.a from t as b
select t.a from t
A String containing the name of the base table of the Columnis in. | DataTypeDescriptor | getType() Returns a DataTypeDescriptor for the column. | boolean | isAutoincrement() Tell us if the column is an autoincrement column or not. | boolean | updatableByCursor() Return true if the column is wirtable by a positioned update. |
getColumnPosition | int getColumnPosition()(Code) | | Get the position of the Column.
NOTE - position is 1-based.
An int containing the position of the Columnwithin the table. |
getName | String getName()(Code) | | Returns the name of the Column.
A String containing the name of the column. |
getSourceSchemaName | String getSourceSchemaName()(Code) | | Get the name of the schema for the Column's base table, if any.
Following example queries will all return APP (assuming user is in schema APP)
select t.a from t
select b.a from t as b
select app.t.a from t
The name of the schema of the Column's base table. If the columnis not in a schema (i.e. is a derived column), it returns NULL. |
getSourceTableName | String getSourceTableName()(Code) | | Get the name of the underlying(base) table this column comes from, if any.
Following example queries will all return T
select a from t
select b.a from t as b
select t.a from t
A String containing the name of the base table of the Columnis in. If the column is not in a table (i.e. is aderived column), it returns NULL. The name of the Column's base table. If the columnis not in a schema (i.e. is a derived column), it returns NULL. |
getType | DataTypeDescriptor getType()(Code) | | Returns a DataTypeDescriptor for the column. This DataTypeDescriptor
will not represent an actual value, it will only represent the type
that all values in the column will have.
A DataTypeDescriptor describing the type of the column. |
isAutoincrement | boolean isAutoincrement()(Code) | | Tell us if the column is an autoincrement column or not.
TRUE, if the column is a base column of a table and is anautoincrement column. |
updatableByCursor | boolean updatableByCursor()(Code) | | Return true if the column is wirtable by a positioned update.
TRUE, if the column is a base column of a table and is writable by a positioned update. |
|
|