This class is a delegate for nested columns found frequently in the DSL, such
as inside the createTable change. It can handle both normal columns,
as found in the createTable change, and the
LoadDataColumnConfig columns that can be found in the loadData
change. When the ChangeSetDelegate creates a ColumnDelegate for a,
given change, it will need to set the correct columnConfigClass.
This class also handles the nested where clause that appears in the
update and delete changes. This probably does not cohere
with the overall purpose of the class, but it is much better than having to
duplicate the column processing logic since the update change uses
columns and a where clause.
This delegate will expand expressions to make databaseChangeLog property substitutions. It is important that the caller does not do it again.
| Type | Name and description |
|---|---|
java.lang.Object |
changeName |
java.lang.Object |
changeSetId |
java.lang.Object |
columnConfigClass |
java.lang.Object |
columns |
java.lang.Object |
databaseChangeLog |
java.lang.Object |
whereClause |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Object |
column(java.util.Map params, groovy.lang.Closure closure = null)Parse a single column entry in a closure. |
|
java.lang.Object |
methodMissing(java.lang.String name, java.lang.Object args)Groovy calls methodMissing when it can't find a matching method to call. |
|
java.lang.Object |
where(java.lang.String whereClause)Set up a where clause for the closure. |
| 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() |
Parse a single column entry in a closure.
params - the attributes to set.closure - a child closure to call, such as a constraint clauseGroovy calls methodMissing when it can't find a matching method to call. We use it to tell the user which changeSet had the invalid element.
name - the name of the method Groovy wanted to call.args - the original arguments to that method.Set up a where clause for the closure.
whereClause - the where clause to use.