HHH-3111 fixed TM.getStatus() to delegate to getTransaction().getStatus(), or return STATUS_NO_TRANSACTION

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@14395 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Chris Bredesen 2008-03-06 17:04:50 +00:00
parent ada6552638
commit 79919d20a4
1 changed files with 2 additions and 2 deletions

View File

@ -83,8 +83,8 @@ public class WebSphereExtendedJTATransactionLookup implements TransactionManager
throw new UnsupportedOperationException();
}
public int getStatus() throws UnsupportedOperationException {
throw new UnsupportedOperationException();
public int getStatus() throws SystemException {
return getTransaction() == null ? Status.STATUS_NO_TRANSACTION : getTransaction().getStatus();
}
public Transaction getTransaction() throws SystemException {