jodd.db.jtx
Class DbJtxSessionProvider

java.lang.Object
  extended by jodd.db.jtx.DbJtxSessionProvider
All Implemented Interfaces:
DbSessionProvider

public class DbJtxSessionProvider
extends java.lang.Object
implements DbSessionProvider

Returns session from the transaction manager.


Field Summary
protected  JtxTransactionManager jtxTxManager
           
 
Constructor Summary
DbJtxSessionProvider(JtxTransactionManager txManager)
           
 
Method Summary
 DbSession getDbSession()
          Returns DbSession instance or throws an exception if session can not be provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jtxTxManager

protected final JtxTransactionManager jtxTxManager
Constructor Detail

DbJtxSessionProvider

public DbJtxSessionProvider(JtxTransactionManager txManager)
Method Detail

getDbSession

public DbSession getDbSession()
Returns DbSession instance or throws an exception if session can not be provided.

Specified by:
getDbSession in interface DbSessionProvider


Copyright ©2008 Jodd Team