|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.sql.GenericColumnDescriptor
public final class GenericColumnDescriptor
This is a stripped down implementation of a column descriptor that is intended for generic use. It can be seralized and attached to plans.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public GenericColumnDescriptor()
public GenericColumnDescriptor(java.lang.String name,
DataTypeDescriptor type)
public GenericColumnDescriptor(ResultColumnDescriptor rcd)
rcd - the ResultColumnDescriptor| Method Detail |
|---|
public 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()
ResultColumnDescriptor
isAutoincrement in interface ResultColumnDescriptorpublic boolean updatableByCursor()
ResultColumnDescriptor
updatableByCursor in interface ResultColumnDescriptorpublic boolean hasGenerationClause()
ResultColumnDescriptor
hasGenerationClause in interface ResultColumnDescriptor
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - write bytes here
java.io.IOException - thrown on error
public 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 error
java.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 readExternal
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||