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

com.yqjr.framework.component.datasource.RouteInfo Maven / Gradle / Ivy

/**
 * 
 */
package com.yqjr.framework.component.datasource;

/**
 * ClassName: RouteInfo 
* Description: 数据源路由信息
* Create By: admin
* Create Date: 2017年4月18日 下午6:44:17
* Modified By:
* Modified Date:
* Modified Content:
* Version: 1.0
*/ public class RouteInfo { /** * 数据访问组(虚拟节点ID) */ private String group; /** * 访问读写节点 */ private RWMode type; /** * 数据源访问节点 */ private String id; /** * 横向切分的情况下需要指定虚拟节点 * * @param group String * @param type RWMode */ public RouteInfo(String group, RWMode type) { this.group = group; this.type = type; } /** * 指定数据源ID访问 * * @param id String */ public RouteInfo(String id) { this.id = id; } public enum RWMode { R, W; } /** * @return the group */ public String getGroup() { return group; } /** * @return the type */ public RWMode getType() { return type; } /** * @return the id */ public String getId() { return id; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy