java.io.Externalizable
, java.io.Serializable
, Formatable
, TypedFormat
, ResultColumnDescriptor
public final class GenericColumnDescriptor extends java.lang.Object implements ResultColumnDescriptor, Formatable
Modifier and Type | Field | 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 | Description |
---|---|
GenericColumnDescriptor() |
Niladic constructor for Formatable
|
GenericColumnDescriptor(java.lang.String name,
DataTypeDescriptor type) |
|
GenericColumnDescriptor(ResultColumnDescriptor rcd) |
This constructor is used to build a generic (and
formatable) ColumnDescriptor.
|
Modifier and Type | Method | 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 ResultColumnDescriptor
public java.lang.String getName()
getName
in interface ResultColumnDescriptor
public java.lang.String getSourceSchemaName()
getSourceSchemaName
in interface ResultColumnDescriptor
public java.lang.String getSourceTableName()
getSourceTableName
in interface ResultColumnDescriptor
public int getColumnPosition()
getColumnPosition
in interface ResultColumnDescriptor
public boolean isAutoincrement()
ResultColumnDescriptor
isAutoincrement
in interface ResultColumnDescriptor
public boolean updatableByCursor()
ResultColumnDescriptor
updatableByCursor
in interface ResultColumnDescriptor
public boolean hasGenerationClause()
ResultColumnDescriptor
hasGenerationClause
in interface ResultColumnDescriptor
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- 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.Externalizable
in
- read this.java.io.IOException
- thrown on errorjava.lang.ClassNotFoundException
- thrown on errorpublic int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
public java.lang.String toString()
toString
in class java.lang.Object
private DataTypeDescriptor getStoredDataTypeDescriptor(java.lang.Object o)
o
- object as obtained by fh.get("type") in readExternalApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.