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; 017 018/** 019 * Mybatis-Flex 可能用到的静态常量 020 * 021 * @author michael 022 * @author 王帅 023 */ 024public class FlexConsts { 025 026 private FlexConsts() { 027 } 028 029 public static final String NAME = "MyBatis-Flex"; 030 public static final String VERSION = "1.9.3"; 031 032 033 public static final String SQL = "$$sql"; 034 public static final String SQL_ARGS = "$$sql_args"; 035 public static final String RAW_ARGS = "$$raw_args"; 036 public static final String SCHEMA_NAME = "$$schemaName"; 037 public static final String TABLE_NAME = "$$tableName"; 038 public static final String FIELD_NAME = "$$fieldName"; 039 public static final String PRIMARY_KEY = "$$primaryKey"; 040 public static final String PRIMARY_VALUE = "$$primaryValue"; 041 public static final String VALUE = "$$value"; 042 043 public static final String QUERY = "$$query"; 044 public static final String ROW = "$$row"; 045 public static final String ROWS = "$$rows"; 046 047 public static final String ENTITY = "$$entity"; 048 public static final String ENTITIES = "$$entities"; 049 public static final String IGNORE_NULLS = "$$ignoreNulls"; 050 051 public static final String METHOD_INSERT_BATCH = "insertBatch"; 052 053 public static final Object[] EMPTY_ARRAY = new Object[0]; 054 055 056 /** 057 * 当 entity 使用逻辑删除时,0 为 entity 的正常状态 058 */ 059 public static final int LOGIC_DELETE_NORMAL = 0; 060 /** 061 * 当 entity 使用逻辑删除时,1 为 entity 的删除状态 062 */ 063 public static final int LOGIC_DELETE_DELETED = 1; 064 065}