|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.skife.jdbi.tweak.BMTTransactionHandler
public class BMTTransactionHandler
Transaction Handler which uses a JNDI lookup for an explicitely managed
JTA UserTransaction
for all transactional activity.
Constructor Summary | |
---|---|
BMTTransactionHandler(java.lang.String jndiUserTransaction)
Must be passed JNDI lookup key for the UserTransaction in use |
Method Summary | |
---|---|
void |
begin(Handle handle)
Called when a transaction is started |
void |
commit(Handle handle)
Called when a transaction is committed |
boolean |
isInTransaction(Handle handle)
Called to test if a handle is in a transaction |
void |
rollback(Handle handle)
Called when a transaction is rolled back |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BMTTransactionHandler(java.lang.String jndiUserTransaction)
Method Detail |
---|
public void begin(Handle handle)
begin
in interface TransactionHandler
public void commit(Handle handle)
commit
in interface TransactionHandler
public void rollback(Handle handle)
rollback
in interface TransactionHandler
public boolean isInTransaction(Handle handle)
isInTransaction
in interface TransactionHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |