package liquibase.statement.core;

import liquibase.statement.AbstractSqlStatement;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class DeleteStatement extends AbstractSqlStatement {
    private String catalogName;
    private String schemaName;
    private String tableName;
    private String whereClause;
    private List<Object> whereParameters = new ArrayList<Object>();
    private List<String> whereColumnNames = new ArrayList<String>();

    public DeleteStatement(String catalogName, String schemaName, String tableName) {
        this.catalogName  = catalogName;
        this.schemaName = schemaName;
        this.tableName = tableName;
    }

    public String getCatalogName() {
        return catalogName;
    }

    public String getSchemaName() {
        return schemaName;
    }

    public String getTableName() {
        return tableName;
    }

    public String getWhereClause() {
        return whereClause;
    }

    public DeleteStatement setWhereClause(String whereClause) {
        this.whereClause = whereClause;
        return this;
    }

    public DeleteStatement addWhereParameter(Object value) {
        this.whereParameters.add(value);
        return this;
    }

    public DeleteStatement addWhereParameters(Object... value) {
        this.whereParameters.addAll(Arrays.asList(value));
        return this;
    }

    public DeleteStatement addWhereColumnName(String value) {
        this.whereColumnNames.add(value);
        return this;
    }

    public List<Object> getWhereParameters() {
        return whereParameters;
    }

    public List<String> getWhereColumnNames() {
        return whereColumnNames;
    }
}

@@ -340,30 +340,24 @@
 String where
-Clause
 ;%0D%0A    priva
@@ -954,56 +954,378 @@
 here
-Clause() %7B%0D%0A        return whereClause;%0D%0A    %7D%0D%0A
+() %7B%0D%0A        return where;%0D%0A    %7D%0D%0A%0D%0A    public DeleteStatement setWhere(String where) %7B%0D%0A        this.where = where;%0D%0A        return this;%0D%0A    %7D%0D%0A%0D%0A    /**%0D%0A     * @deprecated use %7B@link #getWhere()%7D%0D%0A     * @return%0D%0A     */%0D%0A    public String getWhereClause() %7B%0D%0A        return getWhere();%0D%0A    %7D%0D%0A%0D%0A    /**%0D%0A     * @deprecated use %7B@link #setWhere(String)%7D%0D%0A     */
 %0D%0A  
@@ -1399,60 +1399,36 @@
     
-this.whereClause = whereClause;%0D%0A        return this
+return setWhere(whereClause)
 ;%0D%0A 

Standardizing on getWhere() not getWhereClause()