org.n3r.eql.trans.EqlTranThreadLocal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eql Show documentation
Show all versions of eql Show documentation
a simple wrapper framework for jdbc to seperate sql and java code
package org.n3r.eql.trans;
import org.n3r.eql.EqlTran;
public class EqlTranThreadLocal {
static ThreadLocal eqlTranLocal = new ThreadLocal();
public static void set(EqlTran eqlTran) {
eqlTranLocal.set(eqlTran);
}
public static EqlTran get() {
return eqlTranLocal.get();
}
public static void clear() {
eqlTranLocal.remove();
}
}