List of usage examples for org.springframework.jdbc.datasource.lookup AbstractRoutingDataSource subclass-usage
From source file org.zht.framework.spring.DynamicDataSource.java
public class DynamicDataSource extends AbstractRoutingDataSource { protected final Logger log = LoggerFactory.getLogger(DynamicDataSource.class); @Override protected Object determineCurrentLookupKey() {
From source file com.esquema.RoutingDataSource.java
public class RoutingDataSource extends AbstractRoutingDataSource { @Override protected Object determineCurrentLookupKey() { return DbContextHolder.getDbType(); } }
From source file com.sharksharding.core.shard.SharkDatasourceGroup.java
/**
* shark???
*
* ??Spring??AbstractRoutingDataSource,?????????,
* ???
*
From source file com.wshsoft.framework.datasource.DynamicDataSource.java
/**
* <p>
* ???,?
* </p>
*
* @author xiejian
From source file com.baomidou.framework.datasource.DynamicDataSource.java
/**
* <p>
* ???,?
* </p>
*
* @author L.cm
From source file com.zxy.commons.mybatis.ChooseDataSource.java
/**
* ???
*
* <p>
* <a href="ChooseDataSource.java"><i>View Source</i></a>
*
From source file org.trpr.dataaccess.orm.ShardRoutingDataSource.java
/**
* The <code>ShardRoutingDataSource</code> is a {@link AbstractRoutingDataSource} that routes
* the {@link #getConnection()} method to one of the configured target DataSources based on a lookup
* key determined by the {@link ShardedEntity#getShardHint()} call.
* The ShardedPersistentEntity is retrieved from {@link ShardedEntityContextHolder#getShardedEntity()}
* This data source is a Spring {@link InfrastructureProxy} that returns the actual data source from which a connection was/could have been
From source file org.nebula.service.core.DynamicDataSource.java
@Service public class DynamicDataSource extends AbstractRoutingDataSource implements DbUrlChangeListener { private final static String LOOKUP_KEY = "NEBULA"; private Map<Object, Object> datasources = new HashMap<Object, Object>(); @Value("${jdbc.maxActive}")
From source file com.orientechnologies.orient.jdbc.util.RoutingDataSource.java
/** * @author Salvatore Piccione (TXT e-solutions SpA) * */ public class RoutingDataSource extends AbstractRoutingDataSource {
From source file com.glaf.core.jdbc.datasource.DynamicDataSource.java
public class DynamicDataSource extends AbstractRoutingDataSource { protected final static Log logger = LogFactory.getLog(DynamicDataSource.class); private static ConcurrentMap<Object, Object> targetDataSources = new ConcurrentHashMap<Object, Object>(); private static Object defaultTargetDataSource;