public class DatabaseInformationImpl extends java.lang.Object implements DatabaseInformation, ExtractionContext.DatabaseObjectAccess
| Constructor and Description |
|---|
DatabaseInformationImpl(ServiceRegistry serviceRegistry,
JdbcEnvironment jdbcEnvironment,
DdlTransactionIsolator ddlTransactionIsolator,
Namespace.Name defaultNamespace) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
catalogExists(Identifier catalog)
Check to see if the given catalog already exists.
|
void |
cleanup() |
SequenceInformation |
getSequenceInformation(Identifier catalogName,
Identifier schemaName,
Identifier sequenceName)
Obtain reference to the named SequenceInformation
|
SequenceInformation |
getSequenceInformation(Namespace.Name schemaName,
Identifier sequenceName)
Obtain reference to the named SequenceInformation
|
SequenceInformation |
getSequenceInformation(QualifiedSequenceName sequenceName)
Obtain reference to the named SequenceInformation
|
TableInformation |
getTableInformation(Identifier catalogName,
Identifier schemaName,
Identifier tableName)
Obtain reference to the named TableInformation
|
TableInformation |
getTableInformation(Namespace.Name namespace,
Identifier tableName)
Obtain reference to the named TableInformation
|
TableInformation |
getTableInformation(QualifiedTableName tableName)
Obtain reference to the named TableInformation
|
NameSpaceTablesInformation |
getTablesInformation(Namespace namespace)
Obtain reference to all the TableInformation) for a given {@link Namespace}
|
SequenceInformation |
locateSequenceInformation(QualifiedSequenceName sequenceName) |
TableInformation |
locateTableInformation(QualifiedTableName tableName) |
boolean |
schemaExists(Namespace.Name namespace)
Check to see if the given schema already exists.
|
public DatabaseInformationImpl(ServiceRegistry serviceRegistry, JdbcEnvironment jdbcEnvironment, DdlTransactionIsolator ddlTransactionIsolator, Namespace.Name defaultNamespace) throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean catalogExists(Identifier catalog)
DatabaseInformationcatalogExists in interface DatabaseInformationcatalog - The catalog nametrue indicates a catalog with the given name already existspublic boolean schemaExists(Namespace.Name namespace)
DatabaseInformationschemaExists in interface DatabaseInformationnamespace - The schema nametrue indicates a schema with the given name already existspublic TableInformation getTableInformation(Identifier catalogName, Identifier schemaName, Identifier tableName)
DatabaseInformationgetTableInformation in interface DatabaseInformationcatalogName - The name of the catalog which contains the schema which the table belongs toschemaName - The name of the schema the table belongs totableName - The table namenull if not found.public TableInformation getTableInformation(Namespace.Name namespace, Identifier tableName)
DatabaseInformationgetTableInformation in interface DatabaseInformationnamespace - The name of the schema the table belongs totableName - The table namenull if not found.public TableInformation getTableInformation(QualifiedTableName tableName)
DatabaseInformationgetTableInformation in interface DatabaseInformationtableName - The qualfied table namenull if not found.public NameSpaceTablesInformation getTablesInformation(Namespace namespace)
DatabaseInformationgetTablesInformation in interface DatabaseInformationnamespace - The Namespace which contains the {@link TableInformation)NameSpaceTablesInformationpublic SequenceInformation getSequenceInformation(Identifier catalogName, Identifier schemaName, Identifier sequenceName)
DatabaseInformationgetSequenceInformation in interface DatabaseInformationcatalogName - The name of the catalog which contains the schema which the sequence belongs toschemaName - The name of the schema the sequence belongs tosequenceName - The sequence namenull if not found.public SequenceInformation getSequenceInformation(Namespace.Name schemaName, Identifier sequenceName)
DatabaseInformationgetSequenceInformation in interface DatabaseInformationschemaName - The name of the schema the table belongs tosequenceName - The sequence namenull if not found.public SequenceInformation getSequenceInformation(QualifiedSequenceName sequenceName)
DatabaseInformationgetSequenceInformation in interface DatabaseInformationsequenceName - The qualified sequence namenull if not found.public void cleanup()
cleanup in interface DatabaseInformationpublic TableInformation locateTableInformation(QualifiedTableName tableName)
locateTableInformation in interface ExtractionContext.DatabaseObjectAccesspublic SequenceInformation locateSequenceInformation(QualifiedSequenceName sequenceName)
locateSequenceInformation in interface ExtractionContext.DatabaseObjectAccessCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.