| 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 sqlStringGenerationContext, GenerationTarget... targets)
Deprecated
as a consequence of
Table being deprecated.
|
| protected void | applyIndexes(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlStringGenerationContext, GenerationTarget... targets)
Deprecated
as a consequence of
Table being deprecated.
|
| private static void | applySqlString(boolean quiet, String sqlString, Formatter formatter, ExecutionOptions options, GenerationTarget... targets)
|
| protected static void | applySqlStrings(boolean quiet, String[] sqlStrings, Formatter formatter, ExecutionOptions options, GenerationTarget... targets)
|
| private static void | applySqlStrings(boolean quiet, Iterator<String> sqlStrings, Formatter formatter, ExecutionOptions options, GenerationTarget... targets)
|
| protected void | applyUniqueKeys(Table table, TableInformation tableInfo, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlStringGenerationContext, GenerationTarget... targets)
Deprecated
as a consequence of
Table 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)
Deprecated
as a consequence of
Check if the ForeignKey already exists.
ForeignKey being deprecated.
|
| protected void | createSchemaAndCatalog(DatabaseInformation existingDatabase, ExecutionOptions options, Dialect dialect, Formatter formatter, boolean tryToCreateCatalogs, boolean tryToCreateSchemas, Set<Identifier> exportedCatalogs, Namespace namespace, GenerationTarget[] targets)
|
| protected void | createTable(Table table, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlStringGenerationContext, GenerationTarget... targets)
Deprecated
as a consequence of
Table being deprecated.
|
| private UniqueConstraintSchemaUpdateStrategy | |
| public void | doMigration(Metadata
Represents the schema to be altered. metadata, ExecutionOptions Options for executing the alteration options, TargetDescriptor description of the target(s) for the alteration commands targetDescriptor)Implements org. |
| pack-priv boolean | equivalentForeignKeyExistsInDatabase(TableInformation tableInformation, String referencingColumn, String referencedTable)
|
| private IndexInformation | findMatchingIndex(Index index, TableInformation tableInformation)
Deprecated
as a consequence of
Index being deprecated.
|
| protected void | migrateTable(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlStringGenerationContext, GenerationTarget... targets)
Deprecated
as a consequence of
Table being deprecated.
|
| private void | performMigration(Metadata metadata, DatabaseInformation existingDatabase, ExecutionOptions options, Dialect dialect, SqlStringGenerationContext sqlStringGenerationContext, GenerationTarget... targets)
|
| 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, SqlStringGenerationContext sqlStringGenerationContext, GenerationTarget[] targets)
|
| public void | setUniqueConstraintStrategy(UniqueConstraintSchemaUpdateStrategy uniqueConstraintStrategy)
For testing... |
| 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 sqlStringGenerationContext, 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 sqlStringGenerationContext, GenerationTarget... targets)
Deprecated as a consequence of | |
| applySqlString | back to summary |
|---|---|
| private static void applySqlString(boolean quiet, String sqlString, Formatter formatter, ExecutionOptions options, GenerationTarget... targets) | |
| applySqlStrings | back to summary |
|---|---|
| protected static void applySqlStrings(boolean quiet, String[] sqlStrings, Formatter formatter, ExecutionOptions options, GenerationTarget... targets) | |
| applySqlStrings | back to summary |
|---|---|
| private static void applySqlStrings(boolean quiet, Iterator<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 sqlStringGenerationContext, 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)
Deprecated as a consequence of 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, GenerationTarget[] targets) | |
| createTable | back to summary |
|---|---|
| protected void createTable(Table table, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlStringGenerationContext, GenerationTarget... targets)
Deprecated as a consequence of | |
| determineUniqueConstraintSchemaUpdateStrategy | back to summary |
|---|---|
| private UniqueConstraintSchemaUpdateStrategy determineUniqueConstraintSchemaUpdateStrategy(Metadata metadata) | |
| doMigration | back to summary |
|---|---|
| public void doMigration(Metadata metadata, ExecutionOptions options, TargetDescriptor targetDescriptor) Implements org. Doc from org. 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)
Deprecated as a consequence of | |
| migrateTable | back to summary |
|---|---|
| protected void migrateTable(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlStringGenerationContext, GenerationTarget... targets)
Deprecated as a consequence of | |
| performMigration | back to summary |
|---|---|
| private void performMigration(Metadata metadata, DatabaseInformation existingDatabase, ExecutionOptions options, Dialect dialect, SqlStringGenerationContext sqlStringGenerationContext, GenerationTarget... targets) | |
| performTablesMigration | back to summary |
|---|---|
| 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, SqlStringGenerationContext sqlStringGenerationContext, GenerationTarget[] targets) | |
| setUniqueConstraintStrategy | back to summary |
|---|---|
| public void setUniqueConstraintStrategy(UniqueConstraintSchemaUpdateStrategy uniqueConstraintStrategy) For testing... | |