org.eclipse.datatools.connectivity.sqm.loader
Interface JDBCTableLoader.ITableFactory
- All Known Implementing Classes:
- IngresTableLoader.IngresTableFactory, IngresTableLoader.IngresViewFactory, JDBCTableLoader.GlobalTempTableFactory, JDBCTableLoader.LocalTempTableFactory, JDBCTableLoader.TableFactory, JDBCTableLoader.ViewFactory, MySqlTableLoader.MySqlTableFactory, SchemaASABaseLoader.ASABaseTableLoader.ASABaseGlobalTempTableFactory, SchemaASABaseLoader.ASABaseTableLoader.ASABaseProxyTableFactory, SchemaASABaseLoader.ASABaseTableLoader.ASABaseViewFactory, SchemaASALoader.ASATableLoader.ASAGlobalTempTableFactory, SchemaASALoader.ASATableLoader.ASATableFactory, SQL2000TableLoader.SQLServerTableFactory, SQL2005TableLoader.SQLServerTableFactory, SybaseASECatalogSchema.ASESysTableFactory, SybaseASECatalogSchema.ASEUserTableFactory, SybaseASECatalogSchema.ASEViewTableFactory
- Enclosing class:
- JDBCTableLoader
public static interface JDBCTableLoader.ITableFactory
Interface for providing creation logic for tables.
|
Method Summary |
Table |
createTable(java.sql.ResultSet rs)
Creates and initializes a table object based on the meta-data in the
result set. |
org.eclipse.emf.ecore.EClass |
getTableEClass()
|
void |
initialize(Table table,
java.sql.ResultSet rs)
Initializes a table object based on the meta-data in the result set. |
void |
setSupportedColumns(java.util.Set supportedColumns)
Specify the column names supported by the result set. |
getTableEClass
org.eclipse.emf.ecore.EClass getTableEClass()
- Returns:
- the EClass used to represent the routine objects created by
this factory. This is used to identify existing objects in
the model during a refresh (e.g. to reuse the object,
preventing external references from breaking).
createTable
Table createTable(java.sql.ResultSet rs)
throws java.sql.SQLException
- Creates and initializes a table object based on the meta-data in the
result set.
- Parameters:
rs - the result set
- Returns:
- a new, initialized Table object.
- Throws:
java.sql.SQLException - if anything goes wrong
initialize
void initialize(Table table,
java.sql.ResultSet rs)
throws java.sql.SQLException
- Initializes a table object based on the meta-data in the result set.
The table object may be a new table requiring initialization or an
existing table that is being reinitialized.
- Parameters:
table - the table to initializers - the result set
- Throws:
java.sql.SQLException - if anything goes wrong
setSupportedColumns
void setSupportedColumns(java.util.Set supportedColumns)
- Specify the column names supported by the result set. These names can
be used to determine whether or not a specific ResultSet.get*()
method is available for a particular named column.
- Parameters:
supportedColumns - column names defined within the result set.