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/branches/Branch_3_2@14394 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Chris Bredesen 2008-03-06 17:03:03 +00:00
parent 74c3e54757
commit 9f2f00f1ee
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 {