类 DatabaseInformationImpl
- java.lang.Object
-
- org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl
-
public class DatabaseInformationImpl extends Object implements DatabaseInformation, ExtractionContext.DatabaseObjectAccess
- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 DatabaseInformationImpl(ServiceRegistry serviceRegistry, JdbcEnvironment jdbcEnvironment, DdlTransactionIsolator ddlTransactionIsolator, Namespace.Name defaultNamespace)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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 namespace, Identifier tableName)Obtain reference to the named TableInformationTableInformationgetTableInformation(QualifiedTableName tableName)Obtain reference to the named TableInformationNameSpaceTablesInformationgetTablesInformation(Namespace namespace)Obtain reference to all theTableInformationfor a givenNamespaceSequenceInformationlocateSequenceInformation(QualifiedSequenceName sequenceName)TableInformationlocateTableInformation(QualifiedTableName tableName)booleanschemaExists(Namespace.Name namespace)Check to see if the given schema already exists.
-
-
-
构造器详细资料
-
DatabaseInformationImpl
public DatabaseInformationImpl(ServiceRegistry serviceRegistry, JdbcEnvironment jdbcEnvironment, DdlTransactionIsolator ddlTransactionIsolator, Namespace.Name defaultNamespace) throws SQLException
- 抛出:
SQLException
-
-
方法详细资料
-
catalogExists
public boolean catalogExists(Identifier catalog)
从接口复制的说明:DatabaseInformationCheck to see if the given catalog already exists.- 指定者:
catalogExists在接口中DatabaseInformation- 参数:
catalog- The catalog name- 返回:
trueindicates a catalog with the given name already exists
-
schemaExists
public boolean schemaExists(Namespace.Name namespace)
从接口复制的说明:DatabaseInformationCheck to see if the given schema already exists.- 指定者:
schemaExists在接口中DatabaseInformation- 参数:
namespace- The schema name- 返回:
trueindicates a schema with the given name already exists
-
getTableInformation
public TableInformation getTableInformation(Identifier catalogName, Identifier schemaName, Identifier tableName)
从接口复制的说明:DatabaseInformationObtain reference to the named TableInformation- 指定者:
getTableInformation在接口中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 name- 返回:
- The table information. May return
nullif not found.
-
getTableInformation
public TableInformation getTableInformation(Namespace.Name namespace, Identifier tableName)
从接口复制的说明:DatabaseInformationObtain reference to the named TableInformation- 指定者:
getTableInformation在接口中DatabaseInformation- 参数:
namespace- The name of the schema the table belongs totableName- The table name- 返回:
- The table information. May return
nullif not found.
-
getTableInformation
public TableInformation getTableInformation(QualifiedTableName tableName)
从接口复制的说明:DatabaseInformationObtain reference to the named TableInformation- 指定者:
getTableInformation在接口中DatabaseInformation- 参数:
tableName- The qualified table name- 返回:
- The table information. May return
nullif not found.
-
getTablesInformation
public NameSpaceTablesInformation getTablesInformation(Namespace namespace)
从接口复制的说明:DatabaseInformationObtain reference to all theTableInformationfor a givenNamespace- 指定者:
getTablesInformation在接口中DatabaseInformation- 参数:
namespace- TheNamespacewhich contains theTableInformation- 返回:
- a
NameSpaceTablesInformation
-
getSequenceInformation
public SequenceInformation getSequenceInformation(Identifier catalogName, Identifier schemaName, Identifier sequenceName)
从接口复制的说明:DatabaseInformationObtain reference to the named SequenceInformation- 指定者:
getSequenceInformation在接口中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 name- 返回:
- The sequence information. May return
nullif not found.
-
getSequenceInformation
public SequenceInformation getSequenceInformation(Namespace.Name schemaName, Identifier sequenceName)
从接口复制的说明:DatabaseInformationObtain reference to the named SequenceInformation- 指定者:
getSequenceInformation在接口中DatabaseInformation- 参数:
schemaName- The name of the schema the table belongs tosequenceName- The sequence name- 返回:
- The sequence information. May return
nullif not found.
-
getSequenceInformation
public SequenceInformation getSequenceInformation(QualifiedSequenceName sequenceName)
从接口复制的说明:DatabaseInformationObtain reference to the named SequenceInformation- 指定者:
getSequenceInformation在接口中DatabaseInformation- 参数:
sequenceName- The qualified sequence name- 返回:
- The sequence information. May return
nullif not found.
-
cleanup
public void cleanup()
- 指定者:
cleanup在接口中DatabaseInformation
-
locateTableInformation
public TableInformation locateTableInformation(QualifiedTableName tableName)
-
locateSequenceInformation
public SequenceInformation locateSequenceInformation(QualifiedSequenceName sequenceName)
-
-