Interface DatabaseInformation
- All Known Implementing Classes:
DatabaseInformationImpl
Provides access to information about existing schema objects (tables, sequences etc) of existing database.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancatalogExists(Identifier catalog) Check to see if the given catalog already exists.voidcleanup()getSequenceInformation(Identifier catalogName, Identifier schemaName, Identifier sequenceName) Obtain reference to the named SequenceInformationgetSequenceInformation(Namespace.Name schemaName, Identifier sequenceName) Obtain reference to the named SequenceInformationgetSequenceInformation(QualifiedSequenceName sequenceName) Obtain reference to the named SequenceInformationgetTableInformation(Identifier catalogName, Identifier schemaName, Identifier tableName) Obtain reference to the named TableInformationgetTableInformation(Namespace.Name schemaName, Identifier tableName) Obtain reference to the named TableInformationgetTableInformation(QualifiedTableName tableName) Obtain reference to the named TableInformationgetTablesInformation(Namespace namespace) Obtain reference to all theTableInformationfor a givenNamespacebooleanschemaExists(Namespace.Name schema) Check to see if the given schema already exists.
-
Method Details
-
schemaExists
Check to see if the given schema already exists.- Parameters:
schema- The schema name- Returns:
trueindicates a schema with the given name already exists
-
getTableInformation
TableInformation getTableInformation(Identifier catalogName, Identifier schemaName, Identifier tableName) Obtain reference to the named TableInformation- Parameters:
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 name- Returns:
- The table information. May return
nullif not found.
-
getTableInformation
Obtain reference to the named TableInformation- Parameters:
schemaName- The name of the schema the table belongs totableName- The table name- Returns:
- The table information. May return
nullif not found.
-
getTableInformation
Obtain reference to the named TableInformation- Parameters:
tableName- The qualified table name- Returns:
- The table information. May return
nullif not found.
-
getTablesInformation
Obtain reference to all theTableInformationfor a givenNamespace- Parameters:
namespace- TheNamespacewhich contains theTableInformation- Returns:
- a
NameSpaceTablesInformation
-
getSequenceInformation
SequenceInformation getSequenceInformation(Identifier catalogName, Identifier schemaName, Identifier sequenceName) Obtain reference to the named SequenceInformation- Parameters:
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 name- Returns:
- The sequence information. May return
nullif not found.
-
getSequenceInformation
Obtain reference to the named SequenceInformation- Parameters:
schemaName- The name of the schema the table belongs tosequenceName- The sequence name- Returns:
- The sequence information. May return
nullif not found.
-
getSequenceInformation
Obtain reference to the named SequenceInformation- Parameters:
sequenceName- The qualified sequence name- Returns:
- The sequence information. May return
nullif not found.
-
catalogExists
Check to see if the given catalog already exists.- Parameters:
catalog- The catalog name- Returns:
trueindicates a catalog with the given name already exists
-
cleanup
void cleanup()
-