Top Description Interfaces Classes
[default module]

Package liquibase.change.custom


Although Liquibase tries to provide a wide range of database refactorings, there are times you may want to create your own custom refactoring class.

To create your own custom refactoring, simply create a class that implements the liquibase.change.custom.CustomSqlChange or liquibase.change.custom.CustomTaskChange interface and use the <custom> tag in your changeset.

If your change can be rolled back, implement the liquibase.change.custom.CustomSqlRollback interface as well.

For a sample custom change class, see liquibase.change.custom.ExampleCustomSqlChange in the test sources.

Interface Summary

Modifier and TypeInterface and Description
public interface
CustomChange

Interface to implement when creating a custom change.

public interface
CustomSqlChange

Interface to implement when creating a custom change that generates SQL.

public interface
CustomSqlRollback

Interface to implement that allows rollback of a custom sql change.

public interface
CustomTaskChange

Interface to implement when creating a custom change that does not actually generate SQL.

public interface
CustomTaskRollback

Interface to implement that allows rollback of a custom task change.

Class Summary

Modifier and TypeClass and Description
public class
CustomChangeWrapper

Adapts CustomChange implementations to the standard change system used by Liquibase.