| java.lang.Object org.apache.derby.impl.sql.GenericColumnDescriptor
GenericColumnDescriptor | final public class GenericColumnDescriptor implements ResultColumnDescriptor,Formatable(Code) | | This is a stripped down implementation of a column
descriptor that is intended for generic use. It
can be seralized and attached to plans.
author: jamie |
Method Summary | |
public void | djdrcd() | public int | getColumnPosition() Get the position of the Column. | public String | getName() Returns the name of the Column. | public 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
A String containing the name of the schema of the Column's table.If the column is not in a schema (i.e. | public 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 Column's base table.If the column is not in a table (i.e. | public DataTypeDescriptor | getType() Returns a DataTypeDescriptor for the column. | public int | getTypeFormatId() Get the formatID which corresponds to this class. | public boolean | isAutoincrement() | public void | readExternal(ObjectInput in) Read this object from a stream of stored objects. | public String | toString() | public boolean | updatableByCursor() | public void | writeExternal(ObjectOutput out) |
GenericColumnDescriptor | public GenericColumnDescriptor()(Code) | | Niladic constructor for Formatable
|
GenericColumnDescriptor | public GenericColumnDescriptor(ResultColumnDescriptor rcd)(Code) | | This constructor is used to build a generic (and
formatable) ColumnDescriptor. The idea is that
it can be passed a ColumnDescriptor from a query
tree and convert it to something that can be used
anywhere.
Parameters: rcd - the ResultColumnDescriptor |
djdrcd | public void djdrcd()(Code) | | |
getColumnPosition | public 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 | public String getName()(Code) | | Returns the name of the Column.
A String containing the name of the column. |
getSourceSchemaName | public 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
A String containing the name of the schema of the Column's table.If the column is not in a schema (i.e. is a derived column), it returns NULL. |
getSourceTableName | public 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 Column's base table.If the column is not in a table (i.e. is a derived column), it returns NULL. |
getType | public 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. |
getTypeFormatId | public int getTypeFormatId()(Code) | | Get the formatID which corresponds to this class.
the formatID of this class |
isAutoincrement | public boolean isAutoincrement()(Code) | | |
updatableByCursor | public boolean updatableByCursor()(Code) | | |
|
|