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

cn.cliveyuan.robin.base.condition.Compare Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
/*
 * Copyright (c) 2020  Clive Yuan ([email protected]).
 */

package cn.cliveyuan.robin.base.condition;

import java.io.Serializable;

/**
 * 比较
 *
 * @author Clive Yuan
 * @date 2020/10/28
 */
public interface Compare extends Serializable {

    /**
     * 等于 =
     *
     * @param column 字段
     * @param val    值
     * @return children
     */
    Children eq(R column, Object val);

    /**
     * 不等于 <>
     *
     * @param column 字段
     * @param val    值
     * @return children
     */
    Children ne(R column, Object val);

    /**
     * 大于 >
     *
     * @param column 字段
     * @param val    值
     * @return children
     */
    Children gt(R column, Object val);

    /**
     * 大于等于 >=
     *
     * @param column 字段
     * @param val    值
     * @return children
     */
    Children ge(R column, Object val);

    /**
     * 小于 <
     *
     * @param column 字段
     * @param val    值
     * @return children
     */
    Children lt(R column, Object val);

    /**
     * 小于等于 <=
     *
     * @param column 字段
     * @param val    值
     * @return children
     */
    Children le(R column, Object val);

    /**
     * BETWEEN 值1 AND 值2
     *
     * @param column 字段
     * @param val1   值1
     * @param val2   值2
     * @return children
     */
    Children between(R column, Object val1, Object val2);

    /**
     * NOT BETWEEN 值1 AND 值2
     *
     * @param column 字段
     * @param val1   值1
     * @param val2   值2
     * @return children
     */
    Children notBetween(R column, Object val1, Object val2);

    /**
     * LIKE '%值%'
     *
     * @param column 字段
     * @param val    值
     * @return children
     */
    Children like(R column, Object val);

    /**
     * NOT LIKE '%值%'
     *
     * @param column 字段
     * @param val    值
     * @return children
     */
    Children notLike(R column, Object val);

    /**
     * LIKE '%值'
     *
     * @param column 字段
     * @param val    值
     * @return children
     */
    Children likeLeft(R column, Object val);

    /**
     * LIKE '值%'
     *
     * @param column 字段
     * @param val    值
     * @return children
     */
    Children likeRight(R column, Object val);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy