| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.connectivity.sqm.loader.JDBCBaseLoader
org.eclipse.datatools.connectivity.sqm.loader.JDBCTableLoader
public class JDBCTableLoader
Base loader implementation for loading a database's catalog objects. This class may be specialized as necessary to meet a particular vendor's needs.
| Nested Class Summary | |
|---|---|
| static class | JDBCTableLoader.GlobalTempTableFactoryBase factory implementation for GLOBAL TEMPORARY type tables. | 
| static interface | JDBCTableLoader.ITableFactoryInterface for providing creation logic for tables. | 
| static class | JDBCTableLoader.LocalTempTableFactoryBase factory implementation for LOCAL TEMPORARY type tables. | 
| static class | JDBCTableLoader.TableFactoryBase factory implementation for TABLE type tables. | 
| static class | JDBCTableLoader.ViewFactoryBase factory implementation for VIEW type tables. | 
| Field Summary | |
|---|---|
| static java.lang.String | COLUMN_REF_GENERATIONThe column name containing the table's reference generation method. | 
| static java.lang.String | COLUMN_REMARKSThe column name containing the table's description. | 
| static java.lang.String | COLUMN_SELF_REFERENCING_COL_NAMEThe column name containing the name of the table's self referencing column. | 
| static java.lang.String | COLUMN_TABLE_NAMEThe column name containing the table's name. | 
| static java.lang.String | COLUMN_TABLE_TYPEThe column name containing the table's type. | 
| static java.lang.String | TYPE_GLOBAL_TEMPORARYGLOBAL TEMPORARY table type. | 
| static java.lang.String | TYPE_LOCAL_TEMPORARYLOCAL TEMPORARY table type. | 
| static java.lang.String | TYPE_REF_DERIVEDDERIVED reference type. | 
| static java.lang.String | TYPE_REF_SYSTEMSYSTEM reference type. | 
| static java.lang.String | TYPE_REF_USERUSER reference type. | 
| static java.lang.String | TYPE_SYSTEM_TABLESYSTEM TABLE table type. | 
| static java.lang.String | TYPE_TABLETABLE table type. | 
| static java.lang.String | TYPE_VIEWVIEW table type. | 
| Constructor Summary | |
|---|---|
| JDBCTableLoader(ICatalogObject catalogObject)This constructs the loader using a ConnectionFilter.TABLE_FILTER filter. | |
| JDBCTableLoader(ICatalogObject catalogObject,
                IConnectionFilterProvider connectionFilterProvider) | |
| Method Summary | |
|---|---|
|  void | clearTables(java.util.List tables)Removes the specified tables from the model. | 
|  JDBCTableLoader.ITableFactory | getTableFactory(java.lang.String type)Returns the table factory associated with the specified type. | 
|  java.util.List | loadTables()Deprecated. see loadTables(List, Collection) | 
|  void | loadTables(java.util.List containmentList,
           java.util.Collection existingTables)Loads the "table" objects from the database. | 
|  JDBCTableLoader.ITableFactory | registerTableFactory(java.lang.String type,
                     JDBCTableLoader.ITableFactory factory)Register a factory for the specified type. | 
|  JDBCTableLoader.ITableFactory | unregisterTableFactory(java.lang.String type)Unregister a factory for the specified type. | 
| Methods inherited from class org.eclipse.datatools.connectivity.sqm.loader.JDBCBaseLoader | 
|---|
| getCatalogObject, setCatalogObject | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String COLUMN_TABLE_NAME
java.sql.DatabaseMetaData.getTables(), 
Constant Field Valuespublic static final java.lang.String COLUMN_TABLE_TYPE
java.sql.DatabaseMetaData.getTables(), 
Constant Field Valuespublic static final java.lang.String COLUMN_REMARKS
java.sql.DatabaseMetaData.getTables(), 
Constant Field Valuespublic static final java.lang.String COLUMN_SELF_REFERENCING_COL_NAME
java.sql.DatabaseMetaData.getTables(), 
Constant Field Valuespublic static final java.lang.String COLUMN_REF_GENERATION
java.sql.DatabaseMetaData.getTables(), 
Constant Field Valuespublic static final java.lang.String TYPE_TABLE
public static final java.lang.String TYPE_VIEW
public static final java.lang.String TYPE_SYSTEM_TABLE
public static final java.lang.String TYPE_GLOBAL_TEMPORARY
public static final java.lang.String TYPE_LOCAL_TEMPORARY
public static final java.lang.String TYPE_REF_SYSTEM
public static final java.lang.String TYPE_REF_USER
public static final java.lang.String TYPE_REF_DERIVED
| Constructor Detail | 
|---|
public JDBCTableLoader(ICatalogObject catalogObject)
catalogObject - the Database object upon which this loader operates.
public JDBCTableLoader(ICatalogObject catalogObject,
                       IConnectionFilterProvider connectionFilterProvider)
catalogObject - the Catalog object upon which this loader operates.connectionFilterProvider - the filter provider used for filtering
        the "schema" objects being loaded| Method Detail | 
|---|
public java.util.List loadTables()
                          throws java.sql.SQLException
loadTables(List, Collection)
java.sql.SQLException - if an error occurred during loading.
public void loadTables(java.util.List containmentList,
                       java.util.Collection existingTables)
                throws java.sql.SQLException
existingTables - the catalog objects which were previously loadedcontainmentList - the containment list held by parent
java.sql.SQLException - if an error occurred during loading.public void clearTables(java.util.List tables)
tables - the tables to be removed from the model.
public JDBCTableLoader.ITableFactory registerTableFactory(java.lang.String type,
                                                          JDBCTableLoader.ITableFactory factory)
type - the table type (e.g. VIEW, TABLE, etc.)factory - the factory
public JDBCTableLoader.ITableFactory unregisterTableFactory(java.lang.String type)
type - the table type (e.g. VIEW, TABLE, etc.)
public JDBCTableLoader.ITableFactory getTableFactory(java.lang.String type)
type - the table type (e.g. VIEW, TABLE, etc.)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||