|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface Database
Database
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.db.DatabaseObject |
|---|
DatabaseObject.DefaultComparator, DatabaseObject.IdentifierTransformer, DatabaseObject.NameTransformer |
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.jpt.jpa.db.DatabaseObject |
|---|
DEFAULT_COMPARATOR, IDENTIFIER_TRANSFORMER, NAME_TRANSFORMER |
| Method Summary | |
|---|---|
String |
convertNameToIdentifier(String name)
Convert the specified name to a database-appropriate SQL identifier (i.e. delimit the name as appropriate). |
Catalog |
getCatalogForIdentifier(String identifier)
Return the catalog for the specified identifier. |
Catalog |
getCatalogNamed(String name)
Return the catalog with the specified name. |
Iterable<Catalog> |
getCatalogs()
Return the database's catalogs. |
int |
getCatalogsSize()
Return the number of catalogs the database contains. |
Catalog |
getDefaultCatalog()
Return the database's default catalog, as defined by the database vendor. |
String |
getDefaultCatalogIdentifier()
Return the database's default catalog identifier. |
org.eclipse.datatools.modelbase.sql.schema.Database |
getDTPDatabase()
Return the database's DTP database. |
Iterable<String> |
getSortedCatalogIdentifiers()
Return the database's catalog identifiers, sorted by name. |
Iterable<String> |
getSortedCatalogNames()
Return the database's catalog names, sorted. |
String |
getVendorName()
Return the name of the database's vendor. |
String |
getVersion()
Return the database's version. |
Table |
selectTableForIdentifier(Iterable<Table> tables,
String identifier)
Select and return from the specified list of tables the table identified by the specified identifier. |
boolean |
supportsCatalogs()
Return whether the database supports catalogs. |
| Methods inherited from interface org.eclipse.jpt.jpa.db.SchemaContainer |
|---|
getDefaultSchema, getDefaultSchemaIdentifier, getSchemaForIdentifier, getSchemaNamed, getSchemata, getSchemataSize, getSortedSchemaIdentifiers, getSortedSchemaNames |
| Methods inherited from interface org.eclipse.jpt.jpa.db.DatabaseObject |
|---|
getConnectionProfile, getDatabase, getIdentifier, getIdentifier, getName, refresh |
| Method Detail |
|---|
org.eclipse.datatools.modelbase.sql.schema.Database getDTPDatabase()
String getVendorName()
String getVersion()
boolean supportsCatalogs()
supportsCatalogs() returns truegetCatalogs() returns catalogs that contain the database's schemata
SchemaContainer.getSchemata() returns an empty iterable
getCatalogs() returns an empty iterable
SchemaContainer.getSchemata() returns the database's schemata
getCatalogs(),
SchemaContainer.getSchemata()Iterable<Catalog> getCatalogs()
supportsCatalogs()int getCatalogsSize()
supportsCatalogs()Iterable<String> getSortedCatalogNames()
getSortedCatalogIdentifiers(),
getCatalogNamed(String)Catalog getCatalogNamed(String name)
null if the database does not support catalogs.
supportsCatalogs(),
getSortedCatalogNames(),
getCatalogForIdentifier(String)Iterable<String> getSortedCatalogIdentifiers()
getSortedCatalogNames(),
getCatalogForIdentifier(String)Catalog getCatalogForIdentifier(String identifier)
null if the database does not support catalogs.
supportsCatalogs(),
getSortedCatalogIdentifiers(),
getCatalogNamed(String)Catalog getDefaultCatalog()
null if the database does not support catalogs or
if the default catalog does not exist (e.g. the database has no catalog
whose name matches the user name).
supportsCatalogs(),
getDefaultCatalogIdentifier()String getDefaultCatalogIdentifier()
supportsCatalogs(),
getDefaultCatalog()
Table selectTableForIdentifier(Iterable<Table> tables,
String identifier)
String convertNameToIdentifier(String name)
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||