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.7.5";
031
032
033    public static final String SQL = "$$sql";
034    public static final String SQL_ARGS = "$$sql_args";
035    public static final String SCHEMA_NAME = "$$schemaName";
036    public static final String TABLE_NAME = "$$tableName";
037    public static final String FIELD_NAME = "$$fieldName";
038    public static final String PRIMARY_KEY = "$$primaryKey";
039    public static final String PRIMARY_VALUE = "$$primaryValue";
040    public static final String VALUE = "$$value";
041
042    public static final String QUERY = "$$query";
043    public static final String ROW = "$$row";
044    public static final String ROWS = "$$rows";
045
046    public static final String ENTITY = "$$entity";
047    public static final String ENTITIES = "$$entities";
048    public static final String IGNORE_NULLS = "$$ignoreNulls";
049
050    public static final String METHOD_INSERT_BATCH = "insertBatch";
051
052    public static final Object[] EMPTY_ARRAY = new Object[0];
053
054
055    /**
056     * 当 entity 使用逻辑删除时,0 为 entity 的正常状态
057     */
058    public static final int LOGIC_DELETE_NORMAL = 0;
059    /**
060     * 当 entity 使用逻辑删除时,1 为 entity 的删除状态
061     */
062    public static final int LOGIC_DELETE_DELETED = 1;
063
064}