public final class GenericColumnDescriptor extends java.lang.Object implements ResultColumnDescriptor, Formatable
| Modifier and Type | Field and Description |
|---|---|
private int |
columnPos |
private boolean |
hasGenerationClause |
private boolean |
isAutoincrement |
private java.lang.String |
name
This class implements Formatable.
|
private java.lang.String |
schemaName |
private java.lang.String |
tableName |
private DataTypeDescriptor |
type |
private boolean |
updatableByCursor |
| Constructor and Description |
|---|
GenericColumnDescriptor()
Niladic constructor for Formatable
|
GenericColumnDescriptor(ResultColumnDescriptor rcd)
This constructor is used to build a generic (and
formatable) ColumnDescriptor.
|
GenericColumnDescriptor(java.lang.String name,
DataTypeDescriptor type) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnPosition()
Get the position of the Column.
|
java.lang.String |
getName()
Returns the name of the Column.
|
java.lang.String |
getSourceSchemaName()
Get the name of the schema for the Column's base table, if any.
|
java.lang.String |
getSourceTableName()
Get the name of the underlying(base) table this column comes from, if any.
|
private DataTypeDescriptor |
getStoredDataTypeDescriptor(java.lang.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.
|
DataTypeDescriptor |
getType()
Returns a DataTypeDescriptor for the column.
|
int |
getTypeFormatId()
Get the formatID which corresponds to this class.
|
boolean |
hasGenerationClause()
Return true if this result column represents a generated column.
|
boolean |
isAutoincrement()
Tell us if the column is an autoincrement column or not.
|
void |
readExternal(java.io.ObjectInput in)
Read this object from a stream of stored objects.
|
java.lang.String |
toString() |
boolean |
updatableByCursor()
Return true if the column is wirtable by a positioned update.
|
void |
writeExternal(java.io.ObjectOutput out)
Write this object out
|
private java.lang.String name
private java.lang.String schemaName
private java.lang.String tableName
private int columnPos
private DataTypeDescriptor type
private boolean isAutoincrement
private boolean updatableByCursor
private boolean hasGenerationClause
public GenericColumnDescriptor()
public GenericColumnDescriptor(java.lang.String name,
DataTypeDescriptor type)
public GenericColumnDescriptor(ResultColumnDescriptor rcd)
rcd - the ResultColumnDescriptorpublic DataTypeDescriptor getType()
getType in interface ResultColumnDescriptorpublic java.lang.String getName()
getName in interface ResultColumnDescriptorpublic java.lang.String getSourceSchemaName()
getSourceSchemaName in interface ResultColumnDescriptorpublic java.lang.String getSourceTableName()
getSourceTableName in interface ResultColumnDescriptorpublic int getColumnPosition()
getColumnPosition in interface ResultColumnDescriptorpublic boolean isAutoincrement()
ResultColumnDescriptorisAutoincrement in interface ResultColumnDescriptorpublic boolean updatableByCursor()
ResultColumnDescriptorupdatableByCursor in interface ResultColumnDescriptorpublic boolean hasGenerationClause()
ResultColumnDescriptorhasGenerationClause in interface ResultColumnDescriptorpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - write bytes herejava.io.IOException - thrown on errorpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - read this.java.io.IOException - thrown on errorjava.lang.ClassNotFoundException - thrown on errorpublic int getTypeFormatId()
getTypeFormatId in interface TypedFormatpublic java.lang.String toString()
toString in class java.lang.Objectprivate DataTypeDescriptor getStoredDataTypeDescriptor(java.lang.Object o)
o - object as obtained by fh.get("type") in readExternalApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.