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