wt.introspection
Class DatabaseInfo

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

public class DatabaseInfo
extends Object
implements Externalizable

DatabaseInfo is the class for providing class meta-data regarding its database storage.

  


Supported API: false

Extendable: false

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

Field Summary
private  String absoluteDir
           
private  Boolean autoNavigate
           
private  BaseTableInfo baseTableInfo
           
static long externalizationVersionUID
          Version identifier for managing compatibility and evolution of externalizable classes.
private  boolean myAutoNavigate
           
private  String packageName
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
(package private) static boolean VERBOSE
           
private  DatabaseViewInfo viewInfo
           
 
Constructor Summary
DatabaseInfo()
          Constructor
DatabaseInfo(BaseTableInfo base_table_info, boolean auto_navigate, String package_name)
           
 
Method Summary
 BaseTableInfo getBaseTableInfo()
          Obtain the info for the base table for the class that owns this DatabaseInfo.
 String getPackageName()
          Answer database package name
 DatabaseViewInfo getViewInfo()
          Obtain the info for the database view for the class that owns this DatabaseInfo.
private  boolean hasAutoNavRoles()
           
 boolean isAutoNavigate()
          Determine if the class has any auto navigate association roles.
 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 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

absoluteDir

private String absoluteDir

VERBOSE

static boolean VERBOSE

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

packageName

private String packageName

baseTableInfo

private BaseTableInfo baseTableInfo

viewInfo

private transient DatabaseViewInfo viewInfo

myAutoNavigate

private boolean myAutoNavigate

autoNavigate

private transient volatile Boolean autoNavigate
Constructor Detail

DatabaseInfo

public DatabaseInfo()
Constructor


DatabaseInfo

public DatabaseInfo(BaseTableInfo base_table_info,
                    boolean auto_navigate,
                    String package_name)
Method Detail

getBaseTableInfo

public BaseTableInfo getBaseTableInfo()
                               throws WTIntrospectionException
Obtain the info for the base table for the class that owns this DatabaseInfo.

Returns:
BaseTableInfo
Throws:
WTIntrospectionException

getPackageName

public String getPackageName()
Answer database package name

Returns:
The name of the database package, in which table resides.

getViewInfo

public DatabaseViewInfo getViewInfo()
                             throws WTIntrospectionException
Obtain the info for the database view for the class that owns this DatabaseInfo.

Returns:
A non-null value for any AutoNavigate class, whether concrete or not.
Throws:
WTIntrospectionException

hasAutoNavRoles

private boolean hasAutoNavRoles()
                         throws WTIntrospectionException
Throws:
WTIntrospectionException

isAutoNavigate

public boolean isAutoNavigate()
                       throws WTIntrospectionException
Determine if the class has any auto navigate association roles.

Returns:
true, if the class has any auto navigate association roles
Throws:
WTIntrospectionException

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

setAbsoluteDir

void setAbsoluteDir(String absolute_dir)

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