接口 DatabaseInformation
-
- 所有已知实现类:
DatabaseInformationImpl
public interface DatabaseInformationProvides access to information about existing schema objects (tables, sequences etc) of existing database.- 作者:
- Christoph Sturm, Teodor Danciu, Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 booleancatalogExists(Identifier catalog)Check to see if the given catalog already exists.voidcleanup()SequenceInformationgetSequenceInformation(Identifier catalogName, Identifier schemaName, Identifier sequenceName)Obtain reference to the named SequenceInformationSequenceInformationgetSequenceInformation(Namespace.Name schemaName, Identifier sequenceName)Obtain reference to the named SequenceInformationSequenceInformationgetSequenceInformation(QualifiedSequenceName sequenceName)Obtain reference to the named SequenceInformationTableInformationgetTableInformation(Identifier catalogName, Identifier schemaName, Identifier tableName)Obtain reference to the named TableInformationTableInformationgetTableInformation(Namespace.Name schemaName, Identifier tableName)Obtain reference to the named TableInformationTableInformationgetTableInformation(QualifiedTableName tableName)Obtain reference to the named TableInformationNameSpaceTablesInformationgetTablesInformation(Namespace namespace)Obtain reference to all theTableInformationfor a givenNamespacebooleanschemaExists(Namespace.Name schema)Check to see if the given schema already exists.
-
-
-
方法详细资料
-
schemaExists
boolean schemaExists(Namespace.Name schema)
Check to see if the given schema already exists.- 参数:
schema- The schema name- 返回:
trueindicates a schema with the given name already exists
-
getTableInformation
TableInformation getTableInformation(Identifier catalogName, Identifier schemaName, Identifier tableName)
Obtain reference to the named TableInformation- 参数:
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- 返回:
- The table information. May return
nullif not found.
-
getTableInformation
TableInformation getTableInformation(Namespace.Name schemaName, Identifier tableName)
Obtain reference to the named TableInformation- 参数:
schemaName- The name of the schema the table belongs totableName- The table name- 返回:
- The table information. May return
nullif not found.
-
getTableInformation
TableInformation getTableInformation(QualifiedTableName tableName)
Obtain reference to the named TableInformation- 参数:
tableName- The qualified table name- 返回:
- The table information. May return
nullif not found.
-
getTablesInformation
NameSpaceTablesInformation getTablesInformation(Namespace namespace)
Obtain reference to all theTableInformationfor a givenNamespace- 参数:
namespace- TheNamespacewhich contains theTableInformation- 返回:
- a
NameSpaceTablesInformation
-
getSequenceInformation
SequenceInformation getSequenceInformation(Identifier catalogName, Identifier schemaName, Identifier sequenceName)
Obtain reference to the named SequenceInformation- 参数:
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- 返回:
- The sequence information. May return
nullif not found.
-
getSequenceInformation
SequenceInformation getSequenceInformation(Namespace.Name schemaName, Identifier sequenceName)
Obtain reference to the named SequenceInformation- 参数:
schemaName- The name of the schema the table belongs tosequenceName- The sequence name- 返回:
- The sequence information. May return
nullif not found.
-
getSequenceInformation
SequenceInformation getSequenceInformation(QualifiedSequenceName sequenceName)
Obtain reference to the named SequenceInformation- 参数:
sequenceName- The qualified sequence name- 返回:
- The sequence information. May return
nullif not found.
-
catalogExists
boolean catalogExists(Identifier catalog)
Check to see if the given catalog already exists.- 参数:
catalog- The catalog name- 返回:
trueindicates a catalog with the given name already exists
-
cleanup
void cleanup()
-
-