Package liquibase.change.custom
Interface CustomChange
-
- All Known Subinterfaces:
CustomSqlChange,CustomTaskChange
public interface CustomChangeInterface to implement when creating a custom change. Actual custom changes implementations need to implement CustomSqlChange or CustomTaskChange.- See Also:
- custom-change for more information.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetConfirmationMessage()Confirmation message to be displayed after the change is executedvoidsetFileOpener(ResourceAccessor resourceAccessor)Sets the fileOpener that should be used for any file loading and resource finding for files that are provided by the user.voidsetUp()This method will be called after the no arg constructor and all of the properties have been set to allow the task to do any heavy tasks or more importantly generate any exceptions to report to the user about the settings provided.ValidationErrorsvalidate(Database database)Tests that the change is configured correctly before attempting to execute it.
-
-
-
Method Detail
-
getConfirmationMessage
String getConfirmationMessage()
Confirmation message to be displayed after the change is executed- Returns:
- a
Stringcontaining the message after the change is executed
-
setUp
void setUp() throws SetupExceptionThis method will be called after the no arg constructor and all of the properties have been set to allow the task to do any heavy tasks or more importantly generate any exceptions to report to the user about the settings provided.- Throws:
SetupException
-
setFileOpener
void setFileOpener(ResourceAccessor resourceAccessor)
Sets the fileOpener that should be used for any file loading and resource finding for files that are provided by the user.
-
validate
ValidationErrors validate(Database database)
Tests that the change is configured correctly before attempting to execute it.- Parameters:
database- The database the change will be ran against
-
-