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

org.phoenix.basic.paging.SystemRequestHolder Maven / Gradle / Ivy

Go to download

对hibernate4的封装。封装了Druid,通过Druid可以轻量级的对其他数据库进行操作

The newest version!
package org.phoenix.basic.paging;

/**
 * 请求上下文控制器
 * @author mengfeiyang
 *
 */
public class SystemRequestHolder {
	private final static ThreadLocal systemRequesthreadLocal = new ThreadLocal();
	
	public static void initRequestHolder(SystemRequest systemRequest) {
		systemRequesthreadLocal.set(systemRequest);
	}
	
	public static SystemRequest getSystemRequest() {
		return systemRequesthreadLocal.get();
	}
	
	public static void remove() {
		systemRequesthreadLocal.remove();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy