public class DatabaseInformationImpl extends 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 SQLException
SQLException
public boolean catalogExists(Identifier catalog)
DatabaseInformation
catalogExists
in interface DatabaseInformation
catalog
- The catalog nametrue
indicates a catalog with the given name already existspublic boolean schemaExists(Namespace.Name namespace)
DatabaseInformation
schemaExists
in interface DatabaseInformation
namespace
- The schema nametrue
indicates a schema with the given name already existspublic TableInformation getTableInformation(Identifier catalogName, Identifier schemaName, Identifier tableName)
DatabaseInformation
getTableInformation
in interface DatabaseInformation
catalogName
- 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)
DatabaseInformation
getTableInformation
in interface DatabaseInformation
namespace
- The name of the schema the table belongs totableName
- The table namenull
if not found.public TableInformation getTableInformation(QualifiedTableName tableName)
DatabaseInformation
getTableInformation
in interface DatabaseInformation
tableName
- The qualfied table namenull
if not found.public NameSpaceTablesInformation getTablesInformation(Namespace namespace)
DatabaseInformation
getTablesInformation
in interface DatabaseInformation
namespace
- The Namespace
which contains the {@link TableInformation)NameSpaceTablesInformation
public SequenceInformation getSequenceInformation(Identifier catalogName, Identifier schemaName, Identifier sequenceName)
DatabaseInformation
getSequenceInformation
in interface DatabaseInformation
catalogName
- 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)
DatabaseInformation
getSequenceInformation
in interface DatabaseInformation
schemaName
- The name of the schema the table belongs tosequenceName
- The sequence namenull
if not found.public SequenceInformation getSequenceInformation(QualifiedSequenceName sequenceName)
DatabaseInformation
getSequenceInformation
in interface DatabaseInformation
sequenceName
- The qualified sequence namenull
if not found.public void cleanup()
cleanup
in interface DatabaseInformation
public TableInformation locateTableInformation(QualifiedTableName tableName)
locateTableInformation
in interface ExtractionContext.DatabaseObjectAccess
public SequenceInformation locateSequenceInformation(QualifiedSequenceName sequenceName)
locateSequenceInformation
in interface ExtractionContext.DatabaseObjectAccess
Copyright © 2020 JBoss by Red Hat. All rights reserved.