All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.neogroup.warp.data.query.RawStatement Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package org.neogroup.warp.data.query;

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

public class RawStatement {

    private String statement;
    private List bindings;

    public RawStatement(String statement) {
        this.statement = statement;
        this.bindings = new ArrayList<>();
    }

    public String getStatement() {
        return statement;
    }

    public List getBindings() {
        return bindings;
    }

    public RawStatement clearBindings () {
        bindings.clear();
        return this;
    }

    public RawStatement addBinding(Object value) {
        bindings.add(value);
        return this;
    }
}