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

net.dongliu.dbutils.SQL Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
package net.dongliu.dbutils;

import static java.util.Objects.requireNonNull;

/**
 * Hold sql clause and params
 */
public class SQL {
    private final String clause;
    private final Object[] params;
    public final static Object[] emptyParams = {};

    public SQL(String clause, Object[] params) {
        this.clause = requireNonNull(clause);
        this.params = requireNonNull(params);
    }

    public SQL(String clause) {
        this(clause, emptyParams);
    }

    public String clause() {
        return clause;
    }

    public Object[] params() {
        return params;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy