| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private boolean | |
| private boolean | |
| private String | name
This class implements Formatable. |
| private String | |
| private String | |
| private DataTypeDescriptor | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | GenericColumnDescriptor(ResultColumnDescriptor
the ResultColumnDescriptor rcd)This constructor is used to build a generic (and formatable) ColumnDescriptor. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: An int containing the position of the Column within the table.Implements org. Get the position of the Column. |
| public String | Returns: A String containing the name of the column.Implements org. Returns the name of the Column. |
| public String | Returns: 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.Implements org. Get the name of the schema for the Column's base table, if any. |
| public String | Returns: 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.Implements org. Get the name of the underlying(base) table this column comes from, if any. |
| private DataTypeDescriptor | Returns: DataTypeDescriptorobject as obtained by fh.get("type") in readExternal o)When retrieving a DataTypeDescriptor, it might just be a regular DataTypeDescriptor or may be an OldRoutineType, as used for Routine parameters and return values prior to DERBY-2775. |
| public DataTypeDescriptor | Returns: A DataTypeDescriptor describing the type of the column.Implements org. Returns a DataTypeDescriptor for the column. |
| public int | Returns: the formatID of this classImplements org. Get the formatID which corresponds to this class. |
| public boolean | hasGenerationClause()
Implements org. Return true if this result column represents a generated column. |
| public boolean | isAutoincrement()
Implements org. Tell us if the column is an autoincrement column or not. |
| public void | readExternal(ObjectInput
read this. in)Implements java. Read this object from a stream of stored objects. |
| public String | |
| public boolean | updatableByCursor()
Implements org. Return true if the column is wirtable by a positioned update. |
| public void | writeExternal(ObjectOutput
write bytes here out)Implements java. Write this object out |
| columnPos | back to summary |
|---|---|
| private int columnPos | |
| hasGenerationClause | back to summary |
|---|---|
| private boolean hasGenerationClause | |
| isAutoincrement | back to summary |
|---|---|
| private boolean isAutoincrement | |
| name | back to summary |
|---|---|
| private String name This class implements Formatable. That means that it can write itself to and from a formatted stream. If you add more fields to this class, make sure that you also write/read them with the writeExternal()/readExternal() methods. If, inbetween releases, you add more fields to this class, then you should bump the version number emitted by the getTypeFormatId() method. | |
| schemaName | back to summary |
|---|---|
| private String schemaName | |
| tableName | back to summary |
|---|---|
| private String tableName | |
| type | back to summary |
|---|---|
| private DataTypeDescriptor type | |
| updatableByCursor | back to summary |
|---|---|
| private boolean updatableByCursor | |
| GenericColumnDescriptor | back to summary |
|---|---|
| public GenericColumnDescriptor() Niladic constructor for Formatable | |
| GenericColumnDescriptor | back to summary |
|---|---|
| public GenericColumnDescriptor(String name, DataTypeDescriptor type) | |
| GenericColumnDescriptor | back to summary |
|---|---|
| public GenericColumnDescriptor(ResultColumnDescriptor rcd) 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.
| |
| getColumnPosition | back to summary |
|---|---|
| public int getColumnPosition() Implements org. Get the position of the Column. NOTE - position is 1-based.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Returns the name of the Column.
| |
| getSourceSchemaName | back to summary |
|---|---|
| public String getSourceSchemaName() Implements org. 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
| |
| getSourceTableName | back to summary |
|---|---|
| public String getSourceTableName() Implements org. 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
| |
| getStoredDataTypeDescriptor | back to summary |
|---|---|
| private DataTypeDescriptor getStoredDataTypeDescriptor(Object o) When retrieving a DataTypeDescriptor, it might just be a regular DataTypeDescriptor or may be an OldRoutineType, as used for Routine parameters and return values prior to DERBY-2775. If it is not a regular DataTypeDescriptor, it must be an OldRoutineType, so convert it to a DataTypeDescriptor DERBY-4913
| |
| getType | back to summary |
|---|---|
| public DataTypeDescriptor getType() Implements org. 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.
| |
| getTypeFormatId | back to summary |
|---|---|
| public int getTypeFormatId() Implements org. Get the formatID which corresponds to this class.
| |
| hasGenerationClause | back to summary |
|---|---|
| public boolean hasGenerationClause() Implements org. Doc from org. Return true if this result column represents a generated column.
| |
| isAutoincrement | back to summary |
|---|---|
| public boolean isAutoincrement() Implements org. Doc from org. Tell us if the column is an autoincrement column or not.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Implements java. Read this object from a stream of stored objects.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| updatableByCursor | back to summary |
|---|---|
| public boolean updatableByCursor() Implements org. Doc from org. Return true if the column is wirtable by a positioned update.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Implements java. Write this object out
| |