
cn.org.atool.fluent.mybatis.segment.where.BooleanWhere Maven / Gradle / Ivy
package cn.org.atool.fluent.mybatis.segment.where;
import cn.org.atool.fluent.mybatis.base.crud.IBaseQuery;
import cn.org.atool.fluent.mybatis.segment.WhereBase;
import static cn.org.atool.fluent.mybatis.base.model.SqlOp.EQ;
/**
* 布尔值比较
*
* @param
* @param
*/
@SuppressWarnings({"unused"})
public interface BooleanWhere<
WHERE extends WhereBase,
NQ extends IBaseQuery, NQ>
> extends BaseWhere {
/**
* 等于 true
*
* @return 查询器或更新器
*/
default WHERE isTrue() {
return this.apply(EQ, Boolean.TRUE);
}
/**
* 等于 false
*
* @return 查询器或更新器
*/
default WHERE isFalse() {
return this.apply(EQ, Boolean.FALSE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy