Class symantec.itools.db.beans.dbnav.model.builder.TableTypeTreeModelBuilder
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.beans.dbnav.model.builder.TableTypeTreeModelBuilder

Object
   |
   +----AbstractTreeModelBuilderImpl
           |
           +----symantec.itools.db.beans.dbnav.model.builder.TableTypeTreeModelBuilder

public class TableTypeTreeModelBuilder
extends AbstractTreeModelBuilderImpl
implements Runnable

TableTypeTreeModelBuilder is an implementation of TreeModelBuilder interface. This class will build a subtree for one table type tree in dbNavigator.

Version:
1.0 06/15/98
Author:
Hristo Tonev

Variable Index

 o displayName
The name of the type: TABLE, VIEW, etc.
 o tables
The list of all tables of the current table type

Constructor Index

 o symantec.itools.db.beans.dbnav.model.builder.TableTypeTreeModelBuilder()
 o symantec.itools.db.beans.dbnav.model.builder.TableTypeTreeModelBuilder(DatabaseMetaData, boolean, String, Vector)

Method Index

 o createRootNode()
Method to create the root Node.
 o getDatabaseMetaData()
 o getDisplayName()
 o getTables()
 o getUserOnly()
 o run()
 o setDatabaseMetaData(DatabaseMetaData)
 o setDisplayName(String)
 o setTables(Vector)
 o setUserOnly(boolean)

Variables

 o displayName
protected java.lang.String displayName
The name of the type: TABLE, VIEW, etc.

 o tables
protected java.util.Vector tables
The list of all tables of the current table type

Constructors

 o TableTypeTreeModelBuilder
protected TableTypeTreeModelBuilder()
 o TableTypeTreeModelBuilder
public TableTypeTreeModelBuilder(DatabaseMetaData databaseMetaData,
                                 boolean userOnly,
                                 String displayName,
                                 Vector tables)

Parameters:
databaseMetaData - is the database meta data
userOnly - If this flag is true the builder will build a tree ONLY for the database objects owned by the current user (the schema is the current user name)
displayName - is the value that will be displayed
tables - is a vector of TableItem objects

Methods

 o createRootNode
protected symantec.itools.db.beans.dbnav.model.TreeNodeComponent createRootNode()
Method to create the root Node. RootNode must be created before treeNodes.

 o getDatabaseMetaData
public synchronized java.sql.DatabaseMetaData getDatabaseMetaData()
 o getDisplayName
public synchronized java.lang.String getDisplayName()
 o getTables
public synchronized java.util.Vector getTables()
 o getUserOnly
public synchronized boolean getUserOnly()
 o run
public void run()
 o setDatabaseMetaData
public synchronized void setDatabaseMetaData(DatabaseMetaData databaseMetaData)
 o setDisplayName
public synchronized void setDisplayName(String displayName)
 o setTables
public synchronized void setTables(Vector tables)
 o setUserOnly
public synchronized void setUserOnly(boolean userOnly)

All Packages  Class Hierarchy  This Package  Previous  Next  Index