类 InformationExtractorJdbcDatabaseMetaDataImpl
- java.lang.Object
-
- org.hibernate.tool.schema.extract.internal.InformationExtractorJdbcDatabaseMetaDataImpl
-
- 所有已实现的接口:
InformationExtractor
public class InformationExtractorJdbcDatabaseMetaDataImpl extends Object implements InformationExtractor
Implementation of the SchemaMetaDataExtractor contract which uses the standard JDBCDatabaseMetaDataAPI for extraction.- 作者:
- Steve Ebersole
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 protected static interfaceInformationExtractorJdbcDatabaseMetaDataImpl.ForeignKeyBuilderprotected static classInformationExtractorJdbcDatabaseMetaDataImpl.ForeignKeyBuilderImpl
-
构造器概要
构造器 构造器 说明 InformationExtractorJdbcDatabaseMetaDataImpl(ExtractionContext extractionContext)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancatalogExists(Identifier catalog)Does the given catalog exist yet?protected JDBCExceptionconvertSQLException(SQLException sqlException, String message)Iterable<ForeignKeyInformation>getForeignKeys(TableInformation tableInformation)Extract information about foreign keys defined on the given table (targeting or point-at other tables).Iterable<IndexInformation>getIndexes(TableInformation tableInformation)Extract information about indexes defined against the given table.PrimaryKeyInformationgetPrimaryKey(TableInformationImpl tableInformation)Extract information about the given table's primary key.TableInformationgetTable(Identifier catalog, Identifier schema, Identifier tableName)Look for a matching table.NameSpaceTablesInformationgetTables(Identifier catalog, Identifier schema)Extract all the tables information.protected IdentifierHelperidentifierHelper()protected booleanisPhysicalTableType(String tableType)booleanschemaExists(Identifier catalog, Identifier schema)The the given schema exist yet?protected StringtoMetaDataObjectName(Identifier identifier)
-
-
-
构造器详细资料
-
InformationExtractorJdbcDatabaseMetaDataImpl
public InformationExtractorJdbcDatabaseMetaDataImpl(ExtractionContext extractionContext)
-
-
方法详细资料
-
identifierHelper
protected IdentifierHelper identifierHelper()
-
convertSQLException
protected JDBCException convertSQLException(SQLException sqlException, String message)
-
toMetaDataObjectName
protected String toMetaDataObjectName(Identifier identifier)
-
catalogExists
public boolean catalogExists(Identifier catalog)
从接口复制的说明:InformationExtractorDoes the given catalog exist yet?- 指定者:
catalogExists在接口中InformationExtractor- 参数:
catalog- The name of the catalog to look for.- 返回:
trueif the catalog does exist;falseotherwise
-
schemaExists
public boolean schemaExists(Identifier catalog, Identifier schema)
从接口复制的说明:InformationExtractorThe the given schema exist yet?- 指定者:
schemaExists在接口中InformationExtractor- 参数:
catalog- The name of the catalog to look in.schema- The name of the schema to look for.- 返回:
trueif the schema does exist;falseotherwise
-
getTable
public TableInformation getTable(Identifier catalog, Identifier schema, Identifier tableName)
从接口复制的说明:InformationExtractorLook for a matching table.- 指定者:
getTable在接口中InformationExtractor- 参数:
catalog- Can benull, indicating that any catalog may be considered a match. A non-nullvalue indicates that search should be limited to the passed catalog.schema- Can benull, indicating that any schema may be considered a match. A non-nullvalue indicates that search should be limited to the passed schema .tableName- The name of the table to look for.- 返回:
- table info for the matching table
-
getTables
public NameSpaceTablesInformation getTables(Identifier catalog, Identifier schema)
从接口复制的说明:InformationExtractorExtract all the tables information.- 指定者:
getTables在接口中InformationExtractor- 参数:
catalog- Can benull, indicating that any catalog may be considered a match. A non-nullvalue indicates that search should be limited to the passed catalog.schema- Can benull, indicating that any schema may be considered a match. A non-nullvalue indicates that search should be limited to the passed schema .- 返回:
- a
NameSpaceTablesInformation
-
isPhysicalTableType
protected boolean isPhysicalTableType(String tableType)
-
getPrimaryKey
public PrimaryKeyInformation getPrimaryKey(TableInformationImpl tableInformation)
从接口复制的说明:InformationExtractorExtract information about the given table's primary key.- 指定者:
getPrimaryKey在接口中InformationExtractor- 参数:
tableInformation- The table for which to locate primary key information,- 返回:
- The extracted primary key information
-
getIndexes
public Iterable<IndexInformation> getIndexes(TableInformation tableInformation)
从接口复制的说明:InformationExtractorExtract information about indexes defined against the given table. Typically called from the TableInformation itself as part of on-demand initialization of its state.- 指定者:
getIndexes在接口中InformationExtractor- 参数:
tableInformation- The table for which to locate indexes- 返回:
- The extracted index information
-
getForeignKeys
public Iterable<ForeignKeyInformation> getForeignKeys(TableInformation tableInformation)
从接口复制的说明:InformationExtractorExtract information about foreign keys defined on the given table (targeting or point-at other tables). Typically called from the TableInformation itself as part of on-demand initialization of its state.- 指定者:
getForeignKeys在接口中InformationExtractor- 参数:
tableInformation- The table for which to locate foreign-keys- 返回:
- The extracted foreign-key information
-
-