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

com.giants.dal.dao.datasource.MultipleDataSource Maven / Gradle / Ivy

/**
 * 
 */
package com.giants.dal.dao.datasource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author vencent.lu
 *
 * Create Date:2014年3月3日
 */
public class MultipleDataSource extends AbstractRoutingDataSource {

	/* (non-Javadoc)
	 * @see org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource#determineCurrentLookupKey()
	 */
	@Override
	protected Object determineCurrentLookupKey() {
		return DataSourceHolder.getDataSourceKey();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy