|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.introspection.TableInfo
wt.introspection.BaseTableInfo
BaseTableInfo is the class for providing database table meta-data
WTIntrospector
,
ClassInfo
,
ColumnDescriptor
,
Serialized FormField Summary | |
private String |
absoluteDir
|
private com.objectspace.jgl.OrderedMap |
columnTable
|
private String[] |
compositeIndexString
|
private String[][] |
compositeIndices
|
private String[][] |
compositeUniques
|
private String[] |
compositeUniqueString
|
static long |
externalizationVersionUID
Version identifier for managing compatibility and evolution of externalizable classes. |
private String |
indexTableSpaceName
|
private ColumnDescriptor[] |
myColumns
|
private com.objectspace.jgl.HashMap |
myComposites
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private String |
tableSize
|
private String |
tableSpaceName
|
(package private) static boolean |
VERBOSE
|
Fields inherited from class wt.introspection.TableInfo |
COLUMN_NAME_MAX_LENGTH, columns, owner |
Constructor Summary | |
BaseTableInfo()
Constructor |
|
BaseTableInfo(String table_name,
String table_space_name,
String table_size,
String index_table_space_name,
String[] compositeIndexNames,
String[] compositeUniqueNames,
ColumnDescriptor[] cols,
com.objectspace.jgl.HashMap composites)
|
Method Summary | |
protected void |
accumulateColumns()
|
private void |
accumulateCompositeIndices()
|
private void |
accumulateCompositeUniques()
|
private ColumnDescriptor[] |
addInfoCols(ColumnDescriptor[] cols,
BaseTableInfo anotherInfo)
|
private com.objectspace.jgl.OrderedMap |
addInfoCols(com.objectspace.jgl.OrderedMap cols,
BaseTableInfo anotherInfo)
|
private void |
addInfoUniques(ArrayList accumulator,
String[][] another,
int index)
|
ColumnDescriptor |
getColumnDescriptor(String name)
Obtain a column descriptor by name |
private String |
getColumnName(String attrName)
|
String[][] |
getCompositeIndices()
Obtain the composite indices |
String[][] |
getCompositeUniques()
Obtain the composite uniqueness constraints |
String |
getIndexTableSpaceName()
Get the index table space name. |
String |
getTableSize()
Get the table size. |
String |
getTableSpaceName()
Get the table space name. |
private void |
handleForeignKeyLink()
|
(package private) boolean |
isaComposite(String attrName)
|
private String |
parseElement(String element)
|
private void |
parseToUnique(ArrayList accumulator,
String items,
String separator)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
(package private) void |
setAbsoluteDir(String absolute_dir)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class wt.introspection.TableInfo |
getColumnDescriptors, getTablename, setOwner |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long externalizationVersionUID
static final long serialVersionUID
private String absoluteDir
static boolean VERBOSE
private static final String RESOURCE
private String tableSpaceName
private String tableSize
private String indexTableSpaceName
private String[] compositeIndexString
private String[] compositeUniqueString
private transient String[][] compositeIndices
private transient String[][] compositeUniques
private transient com.objectspace.jgl.OrderedMap columnTable
private ColumnDescriptor[] myColumns
private com.objectspace.jgl.HashMap myComposites
Constructor Detail |
public BaseTableInfo()
public BaseTableInfo(String table_name, String table_space_name, String table_size, String index_table_space_name, String[] compositeIndexNames, String[] compositeUniqueNames, ColumnDescriptor[] cols, com.objectspace.jgl.HashMap composites)
Method Detail |
protected void accumulateColumns() throws WTIntrospectionException
accumulateColumns
in class TableInfo
WTIntrospectionException
private void accumulateCompositeIndices() throws WTIntrospectionException
WTIntrospectionException
private void accumulateCompositeUniques() throws WTIntrospectionException
WTIntrospectionException
private ColumnDescriptor[] addInfoCols(ColumnDescriptor[] cols, BaseTableInfo anotherInfo) throws WTIntrospectionException
WTIntrospectionException
private com.objectspace.jgl.OrderedMap addInfoCols(com.objectspace.jgl.OrderedMap cols, BaseTableInfo anotherInfo) throws WTIntrospectionException
WTIntrospectionException
private void addInfoUniques(ArrayList accumulator, String[][] another, int index) throws WTIntrospectionException
WTIntrospectionException
public ColumnDescriptor getColumnDescriptor(String name) throws WTIntrospectionException
getColumnDescriptor
in class TableInfo
WTIntrospectionException
private String getColumnName(String attrName) throws WTIntrospectionException
WTIntrospectionException
public String[][] getCompositeIndices() throws WTIntrospectionException
WTIntrospectionException
public String[][] getCompositeUniques() throws WTIntrospectionException
WTIntrospectionException
public String getIndexTableSpaceName()
public String getTableSize()
public String getTableSpaceName()
private void handleForeignKeyLink() throws WTIntrospectionException
WTIntrospectionException
boolean isaComposite(String attrName) throws WTIntrospectionException
WTIntrospectionException
private String parseElement(String element)
private void parseToUnique(ArrayList accumulator, String items, String separator) throws WTIntrospectionException
WTIntrospectionException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class TableInfo
input
-
IOException
ClassNotFoundException
void setAbsoluteDir(String absolute_dir)
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class TableInfo
output
-
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |