|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.core.SQLToolsFacade
This should be the central place to query about contributed IDBFactorys.
Unlike DatabaseFactoryRegistry, a DefaultDBFactory will be used
if no registered IDBFactory.
| Method Summary | |
static java.util.Collection |
getDBFactories()
Gets all the contributed database factories |
static IDBFactory |
getDBFactory(DatabaseIdentifier databaseIdentifier,
DatabaseVendorDefinitionId vendorId)
Gets the IDBFactory object. |
static IDBFactory |
getDBFactoryByDBDefName(java.lang.String dbDefName)
Gets the IDBFactory object by the database definition name. |
static IDBFactory |
getDBFactoryByProfileName(java.lang.String profileName)
Gets the IDBFactory object by the connection profile name. |
static IDBFactory |
getDBFactoryByVendorIdentifier(DatabaseVendorDefinitionId vendorId)
Gets the IDBFactory object by the DatabaseVendorDefinitionId object |
static SQLToolsFacade |
getInstance()
Singleton |
static java.util.Collection |
getSupportedDBDefinitionNames()
Returns the database definition names which has associated IDBFactorys. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static SQLToolsFacade getInstance()
public static java.util.Collection getDBFactories()
public static java.util.Collection getSupportedDBDefinitionNames()
IDBFactorys.
public static IDBFactory getDBFactoryByDBDefName(java.lang.String dbDefName)
IDBFactory object by the database definition name.
dbDefName - database definition name, which is product name appended by "_" and version.
IDBFactory objectpublic static IDBFactory getDBFactoryByVendorIdentifier(DatabaseVendorDefinitionId vendorId)
IDBFactory object by the DatabaseVendorDefinitionId object
IDBFactory objectpublic static IDBFactory getDBFactoryByProfileName(java.lang.String profileName)
IDBFactory object by the connection profile name. Since different versions of a database
may use the same connection profile provider id, we'll compare the real version of the server with the version
string declared for the IDBFactory and finds the most suitable one.
profileName - connection profile name
IDBFactory object
public static IDBFactory getDBFactory(DatabaseIdentifier databaseIdentifier,
DatabaseVendorDefinitionId vendorId)
IDBFactory object. This is a utility method for getDBFactoryByProfileName(String
profileName) and getDBFactoryByDBName(String dbName). It will try to use the first parameter then the second.
databaseIdentifier - DatabaseIdentifier which contains connection profile name, can be null
IDBFactory object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||