类 AbstractSchemaMigrator
- java.lang.Object
-
- org.hibernate.tool.schema.internal.AbstractSchemaMigrator
-
- 所有已实现的接口:
SchemaMigrator
public abstract class AbstractSchemaMigrator extends Object implements SchemaMigrator
- 作者:
- Steve Ebersole
-
-
字段概要
字段 修饰符和类型 字段 说明 protected SchemaFilterschemaFilterprotected HibernateSchemaManagementTooltool
-
构造器概要
构造器 构造器 说明 AbstractSchemaMigrator(HibernateSchemaManagementTool tool, SchemaFilter schemaFilter)
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected voidapplyForeignKeys(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, GenerationTarget... targets)protected voidapplyIndexes(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, GenerationTarget... targets)protected static voidapplySqlStrings(boolean quiet, String[] sqlStrings, Formatter formatter, ExecutionOptions options, GenerationTarget... targets)protected voidapplyUniqueKeys(Table table, TableInformation tableInfo, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, GenerationTarget... targets)protected voidcheckExportIdentifier(Exportable exportable, Set<String> exportIdentifiers)protected voidcreateSchemaAndCatalog(DatabaseInformation existingDatabase, ExecutionOptions options, Dialect dialect, Formatter formatter, boolean tryToCreateCatalogs, boolean tryToCreateSchemas, Set<Identifier> exportedCatalogs, Namespace namespace, GenerationTarget[] targets)protected voidcreateTable(Table table, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, GenerationTarget... targets)voiddoMigration(Metadata metadata, ExecutionOptions options, TargetDescriptor targetDescriptor)Perform a schema migration (alteration) from the indicated source(s) to the indicated target(s).protected voidmigrateTable(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, GenerationTarget... targets)protected abstract NameSpaceTablesInformationperformTablesMigration(Metadata metadata, DatabaseInformation existingDatabase, ExecutionOptions options, Dialect dialect, Formatter formatter, Set<String> exportIdentifiers, boolean tryToCreateCatalogs, boolean tryToCreateSchemas, Set<Identifier> exportedCatalogs, Namespace namespace, GenerationTarget[] targets)voidsetUniqueConstraintStrategy(UniqueConstraintSchemaUpdateStrategy uniqueConstraintStrategy)For testing...
-
-
-
字段详细资料
-
tool
protected HibernateSchemaManagementTool tool
-
schemaFilter
protected SchemaFilter schemaFilter
-
-
构造器详细资料
-
AbstractSchemaMigrator
public AbstractSchemaMigrator(HibernateSchemaManagementTool tool, SchemaFilter schemaFilter)
-
-
方法详细资料
-
setUniqueConstraintStrategy
public void setUniqueConstraintStrategy(UniqueConstraintSchemaUpdateStrategy uniqueConstraintStrategy)
For testing...
-
doMigration
public void doMigration(Metadata metadata, ExecutionOptions options, TargetDescriptor targetDescriptor)
从接口复制的说明:SchemaMigratorPerform a schema migration (alteration) from the indicated source(s) to the indicated target(s).- 指定者:
doMigration在接口中SchemaMigrator- 参数:
metadata- Represents the schema to be altered.options- Options for executing the alterationtargetDescriptor- description of the target(s) for the alteration commands
-
performTablesMigration
protected abstract NameSpaceTablesInformation performTablesMigration(Metadata metadata, DatabaseInformation existingDatabase, ExecutionOptions options, Dialect dialect, Formatter formatter, Set<String> exportIdentifiers, boolean tryToCreateCatalogs, boolean tryToCreateSchemas, Set<Identifier> exportedCatalogs, Namespace namespace, GenerationTarget[] targets)
-
createTable
protected void createTable(Table table, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, GenerationTarget... targets)
-
migrateTable
protected void migrateTable(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, GenerationTarget... targets)
-
applyIndexes
protected void applyIndexes(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, GenerationTarget... targets)
-
applyUniqueKeys
protected void applyUniqueKeys(Table table, TableInformation tableInfo, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, GenerationTarget... targets)
-
applyForeignKeys
protected void applyForeignKeys(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, GenerationTarget... targets)
-
checkExportIdentifier
protected void checkExportIdentifier(Exportable exportable, Set<String> exportIdentifiers)
-
applySqlStrings
protected static void applySqlStrings(boolean quiet, String[] sqlStrings, Formatter formatter, ExecutionOptions options, GenerationTarget... targets)
-
createSchemaAndCatalog
protected void createSchemaAndCatalog(DatabaseInformation existingDatabase, ExecutionOptions options, Dialect dialect, Formatter formatter, boolean tryToCreateCatalogs, boolean tryToCreateSchemas, Set<Identifier> exportedCatalogs, Namespace namespace, GenerationTarget[] targets)
-
-