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

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

package com.giants.dal.dao.datasource;

public class DataSourceHolder {
	
	private static final ThreadLocal contextHolder = new ThreadLocal();
	
	public static void setDataSourceKey(String dataSourcekey){
		contextHolder.set(dataSourcekey);
	}
	
	public static String getDataSourceKey(){
		return contextHolder.get();
	}
	
	public static void removeCustType(){
		contextHolder.remove();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy