package com.sonic.daosupport.wrapper;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author code
 */
@Getter
@AllArgsConstructor
public enum Operator {
    /** 数据库常规操作符 */
    IN,
    LIKE,
    EQ,
    NE,
    GT,
    GE,
    LT,
    LE,
    IS_NULL,
    IS_NOT_NULL,
    BETWEEN,
    ORDER,
    @Deprecated
    CUSTOM;

    public boolean allowNullValue() {
        return this == IS_NULL || this == IS_NOT_NULL;
    }
}
