Examples of NoTransactionException


Examples of org.apache.openjpa.util.NoTransactionException

        }
    }

    public void assertActiveTransaction() {
        if ((_flags & FLAG_ACTIVE) == 0)
            throw new NoTransactionException(_loc.get("not-active"));
    }
View Full Code Here

Examples of org.apache.openjpa.util.NoTransactionException

    }

    public void assertWriteOperation() {
        if ((_flags & FLAG_ACTIVE) == 0 && (!_nontransWrite
            || (_autoDetach & DETACH_NONTXREAD) != 0))
            throw new NoTransactionException(_loc.get("write-operation"));
    }
View Full Code Here

Examples of org.apache.openjpa.util.NoTransactionException

    /**
     * Throw an exception if no transaction is active.
     */
    private void assertActiveTransaction() {
        if (_state.ctx != null && !_state.ctx.isActive())
            throw new NoTransactionException(_loc.get("not-active"));
    }
View Full Code Here

Examples of org.apache.openjpa.util.NoTransactionException

        }
    }

    public void assertActiveTransaction() {
        if ((_flags & FLAG_ACTIVE) == 0)
            throw new NoTransactionException(_loc.get("not-active"));
    }
View Full Code Here

Examples of org.apache.openjpa.util.NoTransactionException

    }

    public void assertWriteOperation() {
        if ((_flags & FLAG_ACTIVE) == 0 && (!_nontransWrite
            || (_autoDetach & DETACH_NONTXREAD) != 0))
            throw new NoTransactionException(_loc.get("write-operation"));
    }
View Full Code Here

Examples of org.apache.openjpa.util.NoTransactionException

                    rval = Status.STATUS_ACTIVE;
                } else {
                    rval = Status.STATUS_NO_TRANSACTION;
                }
            } catch (Exception e) {
                throw new NoTransactionException(_loc
                        .get("was-transaction-id-exception")).setCause(e);
            }
            return rval;
        }
View Full Code Here

Examples of org.apache.openjpa.util.NoTransactionException

    /**
     * Throw an exception if no transaction is active.
     */
    private void assertActiveTransaction() {
        if (!isActiveTransaction())
            throw new NoTransactionException(_loc.get("not-active"));
    }
View Full Code Here

Examples of org.springframework.transaction.NoTransactionException

      if (txObject.getUserTransaction().getStatus() != Status.STATUS_NO_TRANSACTION) {
        txObject.getUserTransaction().setRollbackOnly();
      }
    }
    catch (IllegalStateException ex) {
      throw new NoTransactionException("No active JTA transaction");
    }
    catch (SystemException ex) {
      throw new TransactionSystemException("JTA failure on setRollbackOnly", ex);
    }
  }
View Full Code Here

Examples of org.springframework.transaction.NoTransactionException

   * because the method was invoked outside an AOP invocation context
   */
  public static TransactionStatus currentTransactionStatus() throws NoTransactionException {
    TransactionInfo info = currentTransactionInfo();
    if (info == null) {
      throw new NoTransactionException("No transaction aspect-managed TransactionStatus in scope");
    }
    return currentTransactionInfo().transactionStatus;
  }
View Full Code Here

Examples of org.springframework.transaction.NoTransactionException

   * because the method was invoked outside an AOP invocation context
   */
  public static TransactionStatus currentTransactionStatus() throws NoTransactionException {
    TransactionInfo info = currentTransactionInfo();
    if (info == null) {
      throw new NoTransactionException("No transaction aspect-managed TransactionStatus in scope");
    }
    return currentTransactionInfo().transactionStatus;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.