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可以轻量级的对其他数据库进行操作

There is a newer version: 1.5.1
Show newest version
package org.phoenix.basic.paging;


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