Top Fields Constructors Methods
liquibase.diff.output.changelog

public abstract Class AbstractChangeGenerator

extends Object
implements ChangeGenerator
Class Inheritance
All Implemented Interfaces
liquibase.diff.output.changelog.ChangeGenerator
Known Direct Subclasses
liquibase.diff.output.changelog.core.MissingPrimaryKeyChangeGenerator, liquibase.diff.output.changelog.core.ChangedColumnChangeGenerator, liquibase.diff.output.changelog.core.ChangedForeignKeyChangeGenerator, liquibase.diff.output.changelog.core.ChangedIndexChangeGenerator, liquibase.diff.output.changelog.core.ChangedPrimaryKeyChangeGenerator, liquibase.diff.output.changelog.core.ChangedSequenceChangeGenerator, liquibase.diff.output.changelog.core.ChangedTableChangeGenerator, liquibase.diff.output.changelog.core.ChangedUniqueConstraintChangeGenerator, liquibase.diff.output.changelog.core.ChangedViewChangeGenerator, liquibase.diff.output.changelog.core.MissingColumnChangeGenerator, liquibase.diff.output.changelog.core.MissingDataChangeGenerator, liquibase.diff.output.changelog.core.MissingForeignKeyChangeGenerator, liquibase.diff.output.changelog.core.MissingIndexChangeGenerator, liquibase.diff.output.changelog.core.MissingSequenceChangeGenerator, liquibase.diff.output.changelog.core.MissingTableChangeGenerator, liquibase.diff.output.changelog.core.MissingUniqueConstraintChangeGenerator, liquibase.diff.output.changelog.core.MissingViewChangeGenerator, liquibase.diff.output.changelog.core.UnexpectedColumnChangeGenerator, liquibase.diff.output.changelog.core.UnexpectedForeignKeyChangeGenerator, liquibase.diff.output.changelog.core.UnexpectedIndexChangeGenerator, liquibase.diff.output.changelog.core.UnexpectedPrimaryKeyChangeGenerator, liquibase.diff.output.changelog.core.UnexpectedSequenceChangeGenerator, liquibase.diff.output.changelog.core.UnexpectedTableChangeGenerator, liquibase.diff.output.changelog.core.UnexpectedUniqueConstraintChangeGenerator, liquibase.diff.output.changelog.core.UnexpectedViewChangeGenerator
Imports
liquibase.change.Change, liquibase.diff.compare.CompareControl, liquibase.util.ObjectUtil, java.util.Arrays

Field Summary

Modifier and TypeField and Description
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private String

Returns:

String
doctor
(String
The string to fix up
stringToDoctor
)

For an input String, replace any '.' characters which occur inside a property expression like ${env.tag}.

public Change[]
public Change[]
private void
setProperty(Change change, String field, String value, CompareControl.SchemaComparison comparison)

private void
public void
setRespectSchemaAndCatalogCase(boolean respectSchemaAndCatalogCase)

private String

Returns:

String The new value
valueToSet
(String
The attribute field to set
field
,
String
The value to set
value
)

Split a dot-annotated attribute value Called only for schemaName and catalogName attributes We fix up the string before the split to avoid issues with '.' characters occurring in a property We replace the string '#|#' with the single '.' afterwards, and then split.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

respectSchemaAndCatalogCaseback to summary
private boolean respectSchemaAndCatalogCase

Constructor Detail

AbstractChangeGeneratorback to summary
public AbstractChangeGenerator()

Method Detail

doctorback to summary
private String doctor(String stringToDoctor)

For an input String, replace any '.' characters which occur inside a property expression like ${env.tag}. By doing this, correctly split the entire value on '.'.

Parameters
stringToDoctor:String

The string to fix up

Returns:String

String

fixOutputAsSchemaback to summary
public Change[] fixOutputAsSchema(Change[] changes, CompareControl.SchemaComparison[] schemaComparisons)

Implements liquibase.diff.output.changelog.ChangeGenerator.fixOutputAsSchema.

Annotations
@Override
fixSchemaback to summary
public Change[] fixSchema(Change[] changes, CompareControl.SchemaComparison[] schemaComparisons)

Implements liquibase.diff.output.changelog.ChangeGenerator.fixSchema.

Annotations
@Override
setPropertyback to summary
private void setProperty(Change change, String field, String value, CompareControl.SchemaComparison comparison)
setPropertyIgnoreSchemaAndCatalogCaseback to summary
private void setPropertyIgnoreSchemaAndCatalogCase(Change change, String field, String value, CompareControl.SchemaComparison comparison)
setRespectSchemaAndCatalogCaseback to summary
public void setRespectSchemaAndCatalogCase(boolean respectSchemaAndCatalogCase)
valueToSetback to summary
private String valueToSet(String field, String value)

Split a dot-annotated attribute value Called only for schemaName and catalogName attributes We fix up the string before the split to avoid issues with '.' characters occurring in a property We replace the string '#|#' with the single '.' afterwards, and then split.

Parameters
field:String

The attribute field to set

value:String

The value to set

Returns:String

String The new value