com.github.antelopeframework.mybatis.shard.ShardContext Maven / Gradle / Ivy
package com.github.antelopeframework.mybatis.shard;
import java.util.HashMap;
import java.util.Map;
import com.github.antelopeframework.mybatis.shard.annotation.ShardOn;
import lombok.Getter;
/**
* 数据源路由选择器上下文环境.
*
* @author yangzhi.yzh
*
*/
public class ShardContext {
/**
* 数据库键.
*/
private static final ThreadLocal THREAD_LOCAL_DATASOURCE_KEY;
/**
* <数据库表名(原始, 未分别之前), {@link ShardOnPair}>
*/
private static final ThreadLocal
© 2015 - 2025 Weber Informatics LLC | Privacy Policy