All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fisco.bcos.sdk.model.PrecompiledConstant Maven / Gradle / Ivy

There is a newer version: 2.7.0
Show newest version
/*
 * Copyright 2014-2020  [fisco-dev]
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 *
 */
package org.fisco.bcos.sdk.model;

public class PrecompiledConstant {
    // constant value
    public static final int CNS_MAX_VERSION_LENGTH = 40;
    public static final int TABLE_KEY_MAX_LENGTH = 255;
    public static final int TABLE_FIELD_NAME_MAX_LENGTH = 64;
    public static final int USER_TABLE_NAME_MAX_LENGTH = 48;
    public static final int TABLE_VALUE_FIELD_MAX_LENGTH = 1024;
    public static final int TABLE_KEY_VALUE_MAX_LENGTH = 255;
    public static final int USER_TABLE_FIELD_VALUE_MAX_LENGTH = 16 * 1024 * 1024 - 1;

    public static final String SYS_TABLE = "_sys_tables_";
    public static final String SYS_TABLE_ACCESS = "_sys_table_access_";
    public static final String SYS_CONSENSUS = "_sys_consensus_";
    public static final String SYS_CNS = "_sys_cns_";
    public static final String SYS_CONFIG = "_sys_config_";

    // user table prefix
    public static final String USER_TABLE_PREFIX = "_user_";
    public static final String USER_TABLE_PREFIX_2_2_0_VERSION = "u_";

    public static final String KEY_FIELD_NAME = "key_field";
    public static final String VALUE_FIELD_NAME = "value_field";
    public static final String TABLE_NAME_FIELD = "table_name";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy