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

com.obatis.orm.constant.CacheInfoConstant Maven / Gradle / Ivy

The newest version!
package com.obatis.orm.constant;

import com.obatis.orm.mapper.BaseBeanSessionMapper;
import com.obatis.orm.mapper.BaseResultSessionMapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 缓存静态属性,主要用于存放实体信息、数据库表相关信息
 * @author HuangLongPu
 */
public class CacheInfoConstant {

	private CacheInfoConstant() {}

	/**
	 * 存放表名
	 */
	public static final Map TABLE_CACHE = new HashMap<>();
	/**
	 * 存放实体中通过 @Column 注解的属性,key 为实体属性,value为数据库字段
	 */
	public static final Map> COLUMN_CACHE = new HashMap<>();
	/**
	 * 存放表与实体的映射属性, key为数据库字段,value为实体属性
	 */
	public static final Map> FIELD_CACHE = new HashMap<>();
	/**
	 * 存放 ResultInfoOutput 的子类的属性
	 */
	public static final Map> RESULT_CACHE = new HashMap<>();

	/**
	 * 存放实体的 sessionMapper
	 */
	public static final Map BEAN_SESSION_MAPPER = new HashMap<>();
	/**
	 * 存放 ResultInfoOutput 的子类的 sessionMapper
	 */
	public static final Map RESULT_SESSION_MAPPER = new HashMap<>();

	public static final String TABLE_AS_START_PREFIX = "#as_";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy