wt.introspection
Class TableInfo

java.lang.Object
  extended bywt.introspection.TableInfo
All Implemented Interfaces:
Externalizable, Serializable
Direct Known Subclasses:
BaseTableInfo, DatabaseViewInfo

public abstract class TableInfo
extends Object
implements Externalizable

TableInfo is the class for providing database table meta-data

  


Supported API: false

Extendable: false

See Also:
WTIntrospector, ClassInfo, BaseTableInfo, DatabaseViewInfo, ColumnDescriptor, Serialized Form

Field Summary
protected static int COLUMN_NAME_MAX_LENGTH
           
protected  ColumnDescriptor[] columns
           
static long externalizationVersionUID
          Version identifier for managing compatibility and evolution of externalizable classes.
protected  ClassInfo owner
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  String tablename
           
(package private) static boolean VERBOSE
           
 
Constructor Summary
TableInfo()
          Constructor
TableInfo(String table_name)
           
 
Method Summary
protected abstract  void accumulateColumns()
           
abstract  ColumnDescriptor getColumnDescriptor(String name)
          Obtain a column descriptor by name
 ColumnDescriptor[] getColumnDescriptors()
          Answer an array of column descriptors
 String getTablename()
          Answer database table name.
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
 void setOwner(ClassInfo owner_info)
           
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

externalizationVersionUID

public static final long externalizationVersionUID
Version identifier for managing compatibility and evolution of externalizable classes.

See Also:
Constant Field Values

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

VERBOSE

static boolean VERBOSE

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

COLUMN_NAME_MAX_LENGTH

protected static final int COLUMN_NAME_MAX_LENGTH
See Also:
Constant Field Values

tablename

private String tablename

owner

protected ClassInfo owner

columns

protected transient ColumnDescriptor[] columns
Constructor Detail

TableInfo

public TableInfo()
Constructor


TableInfo

public TableInfo(String table_name)
Method Detail

accumulateColumns

protected abstract void accumulateColumns()
                                   throws WTIntrospectionException
Throws:
WTIntrospectionException

getColumnDescriptor

public abstract ColumnDescriptor getColumnDescriptor(String name)
                                              throws WTIntrospectionException
Obtain a column descriptor by name

Returns:
ColumnDescriptor
Throws:
WTIntrospectionException

getColumnDescriptors

public ColumnDescriptor[] getColumnDescriptors()
                                        throws WTIntrospectionException
Answer an array of column descriptors

Returns:
ColumnDescriptor[]
Throws:
WTIntrospectionException

getTablename

public String getTablename()
Answer database table name.

Returns:
The name of the database table.

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

setOwner

public void setOwner(ClassInfo owner_info)

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException