| Type | Name and description |
|---|---|
java.lang.Object |
changeSetId |
java.lang.Object |
databaseChangeLog |
java.lang.Object |
preconditions |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Object |
and(groovy.lang.Closure closure) |
|
static liquibase.precondition.core.PreconditionContainer |
buildPreconditionContainer(java.lang.Object databaseChangeLog, java.lang.Object changeSetId, java.util.Map params, groovy.lang.Closure closure)execute a preconditions closure and return the Liquibase
PreconditionContainer it creates. |
|
java.lang.Object |
customPrecondition(java.util.Map params = [:], groovy.lang.Closure closure)Create a customPrecondition. |
|
void |
methodMissing(java.lang.String name, java.lang.Object args)Handle all non-nesting preconditions using the PreconditionFactory. |
|
java.lang.Object |
not(groovy.lang.Closure closure) |
|
java.lang.Object |
or(groovy.lang.Closure closure) |
|
java.lang.Object |
sqlCheck(java.util.Map params = [:], groovy.lang.Closure closure)Create a sqlCheck precondition. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
execute a preconditions closure and return the Liquibase
PreconditionContainer it creates.
databaseChangeLog - the database changelog that owns the changesets.changeSetId - the id of the changeset that owns the precondtionsparams - the parameters to the preconditionsclosure - nested closures to call. Create a customPrecondition. A custom precondition is a class that
implements the Liquibase customPrecondition. The code can do anything
we want. Parameters need to be passed to our custom class as key/value
pairs, either with the XML style of nested param blocks, or by
calling nested methods where the name of the method becomes the key and the
arguments become the value.
params - the params for the precondition, such as the class name.closure - the closure with nested key/value pairs for the custom
precondition.Handle all non-nesting preconditions using the PreconditionFactory.
name - the name of the precondition to createargs - the attributes of the new preconditionCreate a sqlCheck precondition. This one needs some special handling because the SQL is in a nested closure.
params - the attribures of the preconditionclosure - the SQL for the precondition