Package liquibase.changeset
Interface ChangeSetService
- All Superinterfaces:
Plugin
- All Known Implementing Classes:
StandardChangeSetService
The ChangSetService allows for creation and modification of ChangeSets to be pluggable
The implemented createChangeSet methods support calls from the Liquibase Core to create
Change Sets. Not all ChangeSet constructors are supported at this point. Those
constructors will need to be called directly.
-
Field Summary
Fields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED
-
Method Summary
Modifier and TypeMethodDescriptioncreateChangeSet
(String id, String author, boolean alwaysRun, boolean runOnChange, String filePath, String contextFilter, String dbmsList, String runWith, String runWithSpoolFile, boolean runInTransaction, ObjectQuotingStrategy quotingStrategy, DatabaseChangeLog databaseChangeLog) Create a change set with the indicated argumentscreateChangeSet
(String id, String author, boolean alwaysRun, boolean runOnChange, String filePath, String contextFilter, String dbmsList, DatabaseChangeLog databaseChangeLog) Create a change set with the indicated argumentscreateChangeSet
(DatabaseChangeLog databaseChangeLog) Create a change set with the changelogdefault ModifyChangeSets
createModifyChangeSets
(String runWith, String runWithSpool) Create the ModifyChangeSets instance which will do the modificationsCreate the ModifyChangeSets instance which will do the modificationsdefault String
getEndDelimiter
(ChangeSet changeSet) Default implementation returns nulldefault String
getOverrideDelimiter
(String endDelimiter) Check for an override for a change-level delimiterdefault Boolean
getOverrideStripComments
(boolean stripComments) Check for an override for a change-level strip commentsint
Return the plugin prioritydefault Boolean
getStripComments
(ChangeSet changeSet) Default implementation returns nullvoid
modifyChangeSets
(ChangeSet changeSet, ModifyChangeSets modifyChangeSets) Given a change set and a ModifyChangeSets instance, perform the modifications
-
Method Details
-
getPriority
int getPriority()Return the plugin priority- Returns:
- int
-
createChangeSet
ChangeSet createChangeSet(String id, String author, boolean alwaysRun, boolean runOnChange, String filePath, String contextFilter, String dbmsList, String runWith, String runWithSpoolFile, boolean runInTransaction, ObjectQuotingStrategy quotingStrategy, DatabaseChangeLog databaseChangeLog) Create a change set with the indicated arguments- Parameters:
id
-author
-alwaysRun
-runOnChange
-filePath
-contextFilter
-dbmsList
-runWith
-runWithSpoolFile
-runInTransaction
-quotingStrategy
-databaseChangeLog
-- Returns:
- ChangeSet
-
createChangeSet
ChangeSet createChangeSet(String id, String author, boolean alwaysRun, boolean runOnChange, String filePath, String contextFilter, String dbmsList, DatabaseChangeLog databaseChangeLog) Create a change set with the indicated arguments- Parameters:
id
-author
-alwaysRun
-runOnChange
-filePath
-contextFilter
-dbmsList
-databaseChangeLog
-- Returns:
- ChangeSet
-
createChangeSet
Create a change set with the changelog- Parameters:
databaseChangeLog
- Construct this change set with the DatabaseChangeLog- Returns:
- ChangeSet
-
createModifyChangeSets
Create the ModifyChangeSets instance which will do the modifications- Parameters:
node
- The ParsedNode that was created during load- Returns:
- ModifyChangeSets The object which will perform the modifications
- Throws:
ParsedNodeException
- Thrown if unable to access values from the node
-
createModifyChangeSets
Create the ModifyChangeSets instance which will do the modifications- Parameters:
runWith
- The runWith valuerunWithSpool
- The runWithSpool value- Returns:
- ModifyChangeSets The object which will perform the modifications
-
modifyChangeSets
Given a change set and a ModifyChangeSets instance, perform the modifications- Parameters:
changeSet
- The change set to modifymodifyChangeSets
- The modifier
-
getOverrideDelimiter
Check for an override for a change-level delimiter- Parameters:
endDelimiter
- The endDelimiter to override- Returns:
- String The override setting
-
getEndDelimiter
Default implementation returns null- Parameters:
changeSet
- Unused- Returns:
- null
-
getOverrideStripComments
Check for an override for a change-level strip comments- Parameters:
stripComments
- The stripComments to override- Returns:
- String The override setting
-
getStripComments
Default implementation returns null- Parameters:
changeSet
- Unused
-