|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.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 |
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 | |
void |
djdrcd()
|
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. |
DataTypeDescriptor |
getType()
Returns a DataTypeDescriptor for the column. |
int |
getTypeFormatId()
Get the formatID which corresponds to this class. |
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
Constructor Detail |
public GenericColumnDescriptor()
public GenericColumnDescriptor(java.lang.String name, DataTypeDescriptor type)
public GenericColumnDescriptor(ResultColumnDescriptor rcd)
rcd
- the ResultColumnDescriptorMethod Detail |
public 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 void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- write bytes here
java.io.IOException
- thrown on errorpublic void djdrcd()
public 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 error
java.lang.ClassNotFoundException
- thrown on errorpublic int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
public java.lang.String toString()
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |