001/* 002 * Copyright (c) 2022-2023, Mybatis-Flex (fuhai999@gmail.com). 003 * <p> 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * <p> 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * <p> 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package com.mybatisflex.core.constant; 017 018/** 019 * @author michael 020 */ 021public enum SqlOperator { 022 023 // > 024 GT(SqlConsts.GT), 025 026 // >= 027 GE(SqlConsts.GE), 028 029 // < 030 LT(SqlConsts.LT), 031 032 // <= 033 LE(SqlConsts.LE), 034 035 // like 036 LIKE(SqlConsts.LIKE), 037 038 // not like 039 NOT_LIKE(SqlConsts.NOT_LIKE), 040 041 // = 042 EQUALS(SqlConsts.EQUALS), 043 044 // != 045 NOT_EQUALS(SqlConsts.NOT_EQUALS), 046 047 // is null 048 IS_NULL(SqlConsts.IS_NULL), 049 050 // is not null 051 IS_NOT_NULL(SqlConsts.IS_NOT_NULL), 052 053 // in 054 IN(SqlConsts.IN), 055 056 // not in 057 NOT_IN(SqlConsts.NOT_IN), 058 059 // between 060 BETWEEN(SqlConsts.BETWEEN), 061 062 // not between 063 NOT_BETWEEN(SqlConsts.NOT_BETWEEN), 064 ; 065 066 private final String value; 067 068 069 SqlOperator(String value) { 070 this.value = value; 071 } 072 073 public String getValue() { 074 return value; 075 } 076 077}