Top Description Methods
liquibase.change.custom

public Interface CustomTaskChange

extends CustomChange
Imports
liquibase.database.Database, liquibase.exception.CustomChangeException

Interface to implement when creating a custom change that does not actually generate SQL. If you are updating a database through SQL, implementing CustomSqlChange is preferred because the SQL can either be executed directly or saved to a text file for later use depending on the migration mode used. To allow the change to be rolled back, also implement the CustomTaskRollback interface. If your change requires sql-based logic and non-sql-based logic, it is best to create a changeset that contains a mix of CustomSqlChange and CustomTaskChange calls.
See Also
liquibase.change.custom.CustomTaskRollback, liquibase.change.custom.CustomSqlChange

Method Summary

Modifier and TypeMethod and Description
public void
execute(Database
the target database to apply the change to
database
)

Runs the change logic for this custom change.

Inherited from liquibase.change.custom.CustomChange:
getConfirmationMessagesetFileOpenersetUpvalidate

Method Detail

executeback to summary
public void execute(Database database) throws CustomChangeException

Runs the change logic for this custom change.

Parameters
database:Database

the target database to apply the change to

Exceptions
CustomChangeException:
if an exception occurs while processing the change