|
||||||||||
| 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.JDBCUserDefinedTypeLoader
public class JDBCUserDefinedTypeLoader
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 |
JDBCUserDefinedTypeLoader.DistinctTypeFactory
Base factory implementation for distinct UDTs. |
static interface |
JDBCUserDefinedTypeLoader.IUDTFactory
Interface for providing creation logic for UDTs. |
static class |
JDBCUserDefinedTypeLoader.StructTypeFactory
Base factory implementation for struct UDTs. |
| Field Summary | |
|---|---|
static java.lang.String |
COLUMN_BASE_TYPE
The column name containing the UDT's base type. |
static java.lang.String |
COLUMN_CLASS_NAME
The column name containing the UDT's class name. |
static java.lang.String |
COLUMN_DATA_TYPE
The column name containing the UDT's data type. |
static java.lang.String |
COLUMN_REMARKS
The column name containing the UDT's description. |
static java.lang.String |
COLUMN_TYPE_NAME
The column name containing the UDT's name. |
| Constructor Summary | |
|---|---|
JDBCUserDefinedTypeLoader(ICatalogObject catalogObject)
This constructs the loader using the default DistinctTypeFactory StructTypeFactory, no Java type factory, and uses the ConnectionFilter.USER_DEFINED_TYPE_FILTER filter. |
|
JDBCUserDefinedTypeLoader(ICatalogObject catalogObject,
IConnectionFilterProvider connectionFilterProvider)
This constructs the loader using the default DistinctTypeFactory StructTypeFactory, and no Java type factory. |
|
JDBCUserDefinedTypeLoader(ICatalogObject catalogObject,
IConnectionFilterProvider connectionFilterProvider,
JDBCUserDefinedTypeLoader.IUDTFactory distinctTypeFactory,
JDBCUserDefinedTypeLoader.IUDTFactory structTypeFactory,
JDBCUserDefinedTypeLoader.IUDTFactory javaTypeFactory)
|
|
| Method Summary | |
|---|---|
void |
clearUDTs(java.util.List existingUDTs)
Removes the specified UDTs from the model. |
java.util.List |
loadUDTs()
Deprecated. see loadUDTs(List, Collection) |
void |
loadUDTs(java.util.List containmentList,
java.util.Collection existingUDTs)
Loads the "UDT" objects from the database. |
| 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_TYPE_NAME
java.sql.DatabaseMetaData.getUDTs(),
Constant Field Valuespublic static final java.lang.String COLUMN_CLASS_NAME
java.sql.DatabaseMetaData.getUDTs(),
Constant Field Valuespublic static final java.lang.String COLUMN_DATA_TYPE
java.sql.DatabaseMetaData.getUDTs(),
Constant Field Valuespublic static final java.lang.String COLUMN_REMARKS
java.sql.DatabaseMetaData.getUDTs(),
Constant Field Valuespublic static final java.lang.String COLUMN_BASE_TYPE
java.sql.DatabaseMetaData.getUDTs(),
Constant Field Values| Constructor Detail |
|---|
public JDBCUserDefinedTypeLoader(ICatalogObject catalogObject)
catalogObject - the Schema object upon which this loader operates.
public JDBCUserDefinedTypeLoader(ICatalogObject catalogObject,
IConnectionFilterProvider connectionFilterProvider)
catalogObject - the Schema object upon which this loader operates.
public JDBCUserDefinedTypeLoader(ICatalogObject catalogObject,
IConnectionFilterProvider connectionFilterProvider,
JDBCUserDefinedTypeLoader.IUDTFactory distinctTypeFactory,
JDBCUserDefinedTypeLoader.IUDTFactory structTypeFactory,
JDBCUserDefinedTypeLoader.IUDTFactory javaTypeFactory)
catalogObject - the Schema object upon which this loader operates.connectionFilterProvider - the filter provider used for filtering
the "UDT" objects being loadeddistinctTypeFactory - factory for distinct UDTsstructTypeFactory - factory for struct UDTsjavaTypeFactory - factory for Java UDTs| Method Detail |
|---|
public java.util.List loadUDTs()
throws java.sql.SQLException
loadUDTs(List, Collection)
java.sql.SQLException - if an error occurred during loading.
public void loadUDTs(java.util.List containmentList,
java.util.Collection existingUDTs)
throws java.sql.SQLException
existingUDTs - the catalog objects which were previously loadedcontainmentList - the containment list held by parent
java.sql.SQLException - if an error occurred during loading.public void clearUDTs(java.util.List existingUDTs)
existingUDTs - the UDTs to be removed from the model.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||