jodd.db
Class ThreadDbSessionHolder

java.lang.Object
  extended by jodd.db.ThreadDbSessionHolder

public class ThreadDbSessionHolder
extends java.lang.Object

DbSession thread storage.


Constructor Summary
ThreadDbSessionHolder()
           
 
Method Summary
static DbSession get()
          Returns current thread db session.
static DbSession remove()
          Removes current db session from the thread and returns it.
static void set(DbSession dbSession)
          Sets current db session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadDbSessionHolder

public ThreadDbSessionHolder()
Method Detail

get

public static DbSession get()
Returns current thread db session.


set

public static void set(DbSession dbSession)
Sets current db session.


remove

public static DbSession remove()
Removes current db session from the thread and returns it.



Copyright ©2008 Jodd Team