SchemaMigrator.
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| protected SchemaFilter | |
| protected HibernateSchemaManagementTool | |
| private UniqueConstraintSchemaUpdateStrategy |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | applyForeignKeys(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| protected void | applyIndexes(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| private static void | applySequence(Sequence sequence, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| private static void | applySqlString(boolean quiet, String sql, Formatter formatter, ExecutionOptions options, GenerationTarget... targets)
|
| protected static void | applySqlStrings(boolean quiet, String[] sqlStrings, Formatter formatter, ExecutionOptions options, GenerationTarget... targets)
|
| protected void | applyUniqueKeys(Table table, TableInformation tableInfo, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| protected void | |
| private boolean | Returns: boolean, true if key already exists- ForeignKey, new key to be created foreignKey, TableInformation - TableInformation, information of existing keys tableInformation)Check if the ForeignKey already exists. |
| protected void | createSchemaAndCatalog(DatabaseInformation existingDatabase, ExecutionOptions options, Dialect dialect, Formatter formatter, boolean tryToCreateCatalogs, boolean tryToCreateSchemas, Set<Identifier> exportedCatalogs, Namespace namespace, SqlStringGenerationContext context, GenerationTarget[] targets)
|
| protected void | createTable(Table table, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| private UniqueConstraintSchemaUpdateStrategy | |
| public void | doMigration(Metadata
Represents the schema to be altered. metadata, ExecutionOptions Options for executing the alteration options, ContributableMatcher Filter for Contributable instances to use contributableInclusionFilter, TargetDescriptor description of the target(s) for the alteration commands targetDescriptor)Implements org.
Deprecated
as a consequence of
Perform a schema migration (alteration) from the indicated source(s) to the indicated target(s).
Metadata being deprecated.
|
| pack-priv boolean | equivalentForeignKeyExistsInDatabase(TableInformation tableInformation, String referencingColumn, String referencedTable)
|
| private IndexInformation | |
| protected void | migrateTable(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| private void | performMigration(Metadata metadata, DatabaseInformation existingDatabase, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, Dialect dialect, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| protected abstract NameSpaceTablesInformation | performTablesMigration(Metadata metadata, DatabaseInformation existingDatabase, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, Dialect dialect, Formatter formatter, Set<String> exportIdentifiers, boolean tryToCreateCatalogs, boolean tryToCreateSchemas, Set<Identifier> exportedCatalogs, Namespace namespace, SqlStringGenerationContext sqlGenerationContext, GenerationTarget[] targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| public void | setUniqueConstraintStrategy(UniqueConstraintSchemaUpdateStrategy uniqueConstraintStrategy)
For testing. |
| private SqlStringGenerationContext | sqlGenerationContext(Metadata metadata, ExecutionOptions options)
Deprecated
as a consequence of
Metadata being deprecated.
|
| log | back to summary |
|---|---|
| private static final Logger log | |
| schemaFilter | back to summary |
|---|---|
| protected SchemaFilter schemaFilter | |
| tool | back to summary |
|---|---|
| protected HibernateSchemaManagementTool tool | |
| uniqueConstraintStrategy | back to summary |
|---|---|
| private UniqueConstraintSchemaUpdateStrategy uniqueConstraintStrategy | |
| AbstractSchemaMigrator | back to summary |
|---|---|
| public AbstractSchemaMigrator(HibernateSchemaManagementTool tool, SchemaFilter schemaFilter) | |
| applyForeignKeys | back to summary |
|---|---|
| protected void applyForeignKeys(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets)
Deprecated as a consequence of | |
| applyIndexes | back to summary |
|---|---|
| protected void applyIndexes(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets)
Deprecated as a consequence of | |
| applySequence | back to summary |
|---|---|
| private static void applySequence(Sequence sequence, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets)
Deprecated as a consequence of | |
| applySqlString | back to summary |
|---|---|
| private static void applySqlString(boolean quiet, String sql, Formatter formatter, ExecutionOptions options, GenerationTarget... targets) | |
| applySqlStrings | back to summary |
|---|---|
| protected static void applySqlStrings(boolean quiet, String[] sqlStrings, Formatter formatter, ExecutionOptions options, GenerationTarget... targets) | |
| applyUniqueKeys | back to summary |
|---|---|
| protected void applyUniqueKeys(Table table, TableInformation tableInfo, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets)
Deprecated as a consequence of | |
| checkExportIdentifier | back to summary |
|---|---|
| protected void checkExportIdentifier(Exportable exportable, Set<String> exportIdentifiers) | |
| checkForExistingForeignKey | back to summary |
|---|---|
| private boolean checkForExistingForeignKey(ForeignKey foreignKey, TableInformation tableInformation) Check if the ForeignKey already exists. First check based on definition and if that is not matched check if a key with the exact same name exists. Keys with the same name are presumed to be functional equal.
| |
| createSchemaAndCatalog | back to summary |
|---|---|
| protected void createSchemaAndCatalog(DatabaseInformation existingDatabase, ExecutionOptions options, Dialect dialect, Formatter formatter, boolean tryToCreateCatalogs, boolean tryToCreateSchemas, Set<Identifier> exportedCatalogs, Namespace namespace, SqlStringGenerationContext context, GenerationTarget[] targets) | |
| createTable | back to summary |
|---|---|
| protected void createTable(Table table, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets)
Deprecated as a consequence of | |
| determineUniqueConstraintSchemaUpdateStrategy | back to summary |
|---|---|
| private UniqueConstraintSchemaUpdateStrategy determineUniqueConstraintSchemaUpdateStrategy() | |
| doMigration | back to summary |
|---|---|
| public void doMigration(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, TargetDescriptor targetDescriptor) Implements org. Doc from org. Deprecated as a consequence of Perform a schema migration (alteration) from the indicated source(s) to the indicated target(s).
| |
| equivalentForeignKeyExistsInDatabase | back to summary |
|---|---|
| pack-priv boolean equivalentForeignKeyExistsInDatabase(TableInformation tableInformation, String referencingColumn, String referencedTable) | |
| findMatchingIndex | back to summary |
|---|---|
| private IndexInformation findMatchingIndex(Index index, TableInformation tableInformation) | |
| migrateTable | back to summary |
|---|---|
| protected void migrateTable(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets)
Deprecated as a consequence of | |
| performMigration | back to summary |
|---|---|
| private void performMigration(Metadata metadata, DatabaseInformation existingDatabase, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, Dialect dialect, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets)
Deprecated as a consequence of | |
| performTablesMigration | back to summary |
|---|---|
| protected abstract NameSpaceTablesInformation performTablesMigration(Metadata metadata, DatabaseInformation existingDatabase, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, Dialect dialect, Formatter formatter, Set<String> exportIdentifiers, boolean tryToCreateCatalogs, boolean tryToCreateSchemas, Set<Identifier> exportedCatalogs, Namespace namespace, SqlStringGenerationContext sqlGenerationContext, GenerationTarget[] targets)
Deprecated as a consequence of | |
| setUniqueConstraintStrategy | back to summary |
|---|---|
| public void setUniqueConstraintStrategy(UniqueConstraintSchemaUpdateStrategy uniqueConstraintStrategy) For testing. | |
| sqlGenerationContext | back to summary |
|---|---|
| private SqlStringGenerationContext sqlGenerationContext(Metadata metadata, ExecutionOptions options)
Deprecated as a consequence of | |