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

xin.xihc.jba.sql.clause.NotIn Maven / Gradle / Ivy

package xin.xihc.jba.sql.clause;

import xin.xihc.jba.sql.KV;

import java.util.Collection;

/**
 * NOT IN 条件
 *
 * @author Leo.Xi
 * @date 2020/3/5
 * @since 1.0
 **/
public class NotIn extends Clause> {

    public NotIn(String columnName, Collection value) {
        super(columnName, value);
    }

    @Override
    public Collection value() {
        return this.value;
    }

    @Override
    public String operation() {
        return " NOT IN ";
    }

    public String toSql(KV kv) {
        String key = kv.add(this.value());
        return this.columnName + this.operation() + "(:" + key + ")";
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy