397398399400401402403404405406407
ServerStatement.TransactionAbortedMode abortedMode = stmt.getTransactionAbortedMode(); switch (abortedMode) { case ALLOWED: break; case NOT_ALLOWED: throw new TransactionAbortedException(); default: throw new IllegalStateException("Unknown mode: " + abortedMode); } } return localTransaction;