wt.introspection
Class DatabaseViewInfo

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

public class DatabaseViewInfo
extends TableInfo
implements Serializable

DatabaseViewInfo is the class for providing meta-data about a database view for the class.

  


Supported API: false

Extendable: false

See Also:
WTIntrospector, ClassInfo, DatabaseInfo, AliasDescriptor, Serialized Form

Field Summary
private  com.objectspace.jgl.OrderedMap aliasTable
           
private static String ALPHABET
           
private  ClassInfo[] classes
           
private  String[] classnames
           
private  CriteriaDescriptor[] criterion
           
static long externalizationVersionUID
          Version identifier for managing compatibility and evolution of externalizable classes.
private static ArrayList recursionTrail
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  String[] tableAliases
           
(package private) static boolean VERBOSE
           
 
Fields inherited from class wt.introspection.TableInfo
COLUMN_NAME_MAX_LENGTH, columns, owner
 
Constructor Summary
DatabaseViewInfo()
           
DatabaseViewInfo(String view_name)
           
 
Method Summary
protected  void accumulateClasses()
           
protected  void accumulateColumns()
           
private  void addArrayToVector(ArrayList vector, Object[] array)
           
private  void addCriteria(ArrayList collector, String tableID, RoleDescriptor role, DatabaseInfo target)
           
private static ColumnDescriptor getAliasDescriptor(String name, ColumnDescriptor[] columns)
           
 ClassInfo[] getClasses()
          Answer with the ordered list of ClassInfo that comprise this view.
 ColumnDescriptor getColumnDescriptor(String name)
          Obtain a column descriptor by name
 CriteriaDescriptor[] getCriterion()
          Answer an array of CriteriaInfo's
 String[] getTableAliases()
          Answer with the ordered list of table aliases that comprise this view.
private  String stripThe(String a_string)
           
 
Methods inherited from class wt.introspection.TableInfo
getColumnDescriptors, getTablename, readExternal, setOwner, writeExternal
 
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

ALPHABET

private static final String ALPHABET
See Also:
Constant Field Values

VERBOSE

static boolean VERBOSE

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

classnames

private transient String[] classnames

tableAliases

private transient String[] tableAliases

classes

private transient ClassInfo[] classes

criterion

private transient CriteriaDescriptor[] criterion

aliasTable

private transient com.objectspace.jgl.OrderedMap aliasTable

recursionTrail

private static ArrayList recursionTrail
Constructor Detail

DatabaseViewInfo

public DatabaseViewInfo()

DatabaseViewInfo

public DatabaseViewInfo(String view_name)
Method Detail

accumulateClasses

protected void accumulateClasses()
                          throws WTIntrospectionException
Throws:
WTIntrospectionException

accumulateColumns

protected void accumulateColumns()
                          throws WTIntrospectionException
Specified by:
accumulateColumns in class TableInfo
Throws:
WTIntrospectionException

addArrayToVector

private void addArrayToVector(ArrayList vector,
                              Object[] array)

addCriteria

private void addCriteria(ArrayList collector,
                         String tableID,
                         RoleDescriptor role,
                         DatabaseInfo target)
                  throws WTIntrospectionException
Throws:
WTIntrospectionException

getAliasDescriptor

private static ColumnDescriptor getAliasDescriptor(String name,
                                                   ColumnDescriptor[] columns)
                                            throws WTIntrospectionException
Throws:
WTIntrospectionException

getClasses

public ClassInfo[] getClasses()
                       throws WTIntrospectionException
Answer with the ordered list of ClassInfo that comprise this view.

Returns:
Array of ClassInfo's
Throws:
WTIntrospectionException

getColumnDescriptor

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

Specified by:
getColumnDescriptor in class TableInfo
Returns:
AliasDescriptor
Throws:
WTIntrospectionException

getCriterion

public CriteriaDescriptor[] getCriterion()
                                  throws WTIntrospectionException
Answer an array of CriteriaInfo's

Returns:
array of CriteriaInfo's
Throws:
WTIntrospectionException

getTableAliases

public String[] getTableAliases()
                         throws WTIntrospectionException
Answer with the ordered list of table aliases that comprise this view.

Returns:
Array of Strings that are table aliases.
Throws:
WTIntrospectionException

stripThe

private String stripThe(String a_string)