Hello,

I wonder if it would be possible to add a method to SqlSession that would
tell if a database transaction has been started or not. 
Something like :

boolean SqlSession.isTransactionInProgress() 

It would allow a method that receives the SqlSession in parameter to know if
the caller has already started a transaction. Based upon that information,
the method could decide either to start a transaction (that it would commit
before returning) or use the active one.

I think it could be useful in scenarios where AOP frameworks can't be used.
Kind regards 
-- 
View this message in context: 
http://old.nabble.com/Small-suggestion---method-for-checking-if-a-DB-transaction-is-in-progress-tp27026807p27026807.html
Sent from the iBATIS - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ibatis.apache.org
For additional commands, e-mail: dev-h...@ibatis.apache.org

Reply via email to