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

db.sql.api.cmd.executor.method.IWhereMethod Maven / Gradle / Ivy

There is a newer version: 1.7.6-RC2
Show newest version
package db.sql.api.cmd.executor.method;

import db.sql.api.cmd.struct.IWhereIgnoreMethod;
import db.sql.api.cmd.struct.conditionChain.IConditionChain;

public interface IWhereMethod
        >
        extends IConditionMethod,
        IWhereIgnoreMethod {

    @Override
    default SELF ignoreNullValueInCondition(boolean bool) {
        conditionChain().setIgnoreNull(bool);
        return (SELF) this;
    }

    @Override
    default SELF ignoreEmptyInCondition(boolean bool) {
        conditionChain().setIgnoreEmpty(bool);
        return (SELF) this;
    }

    @Override
    default SELF trimStringInCondition(boolean bool) {
        conditionChain().setStringTrim(bool);
        return (SELF) this;
    }

    /**
     * 为搜索(注意查询和搜索是不一样的)
     *
     * @return
     */
    default SELF forSearch() {
        this.ignoreNullValueInCondition(true);
        this.ignoreEmptyInCondition(true);
        this.trimStringInCondition(true);
        return (SELF) this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy