Examples of TransactionNotActiveException


Examples of com.sun.sgs.app.TransactionNotActiveException

      throw new IllegalStateException("Wrong transaction");
        }
        t.setTxnInfo(null);
        return info;
    }
    throw new TransactionNotActiveException(
        "Transaction is not active");
      }
View Full Code Here

Examples of com.sun.sgs.app.TransactionNotActiveException

  checkThread("checkTimeout");
  logger.log(Level.FINEST, "checkTimeout {0}", this);
  switch (state) {
  case ABORTED:
  case COMMITTED:
      throw new TransactionNotActiveException(
    "Transaction is not active: " + state);
  case ABORTING:
  case COMMITTING:
      return;
  case ACTIVE:
View Full Code Here

Examples of org.datanucleus.api.jdo.exceptions.TransactionNotActiveException

     */
    protected void assertActiveTransaction()
    {
        if (!om.getTransaction().isActive())
        {
            throw new TransactionNotActiveException();
        }
    }
View Full Code Here

Examples of org.datanucleus.exceptions.TransactionNotActiveException

     */
    public void commit()
    {
        if (!isActive())
        {
            throw new TransactionNotActiveException();
        }

        // JDO 2.0 section 13.4.5 rollbackOnly functionality
        // It isn't clear from the spec if we are expected to do the rollback here.
        // The spec simply says that we throw an exception. This is assumed as meaning that the users code will catch
View Full Code Here

Examples of org.datanucleus.exceptions.TransactionNotActiveException

     */
    public void rollback()
    {
        if (!isActive())
        {
            throw new TransactionNotActiveException();
        }
        long startTime = System.currentTimeMillis();

        try
        {
View Full Code Here

Examples of org.datanucleus.exceptions.TransactionNotActiveException

     */
    protected void assertActiveTransaction()
    {
        if (!tx.isActive())
        {
            throw new TransactionNotActiveException();
        }
    }
View Full Code Here

Examples of org.datanucleus.exceptions.TransactionNotActiveException

            throw new NucleusUserException(LOCALISER.msg("021013")).setFatal();
        }
        if (!ec.getTransaction().isActive() && !ec.getTransaction().getNontransactionalWrite())
        {
            // tx not active and not allowing non-tx write
            throw new TransactionNotActiveException();
        }

        // Check for specification of any illegal attributes
        if (result != null)
        {
View Full Code Here

Examples of org.datanucleus.jdo.exceptions.TransactionNotActiveException

     */
    protected void assertActiveTransaction()
    {
        if (!objectMgr.getTransaction().isActive())
        {
            throw new TransactionNotActiveException();
        }
    }
View Full Code Here

Examples of org.jpox.exceptions.TransactionNotActiveException

     */
    protected void assertActiveTransaction()
    {
        if (!tx.isActive())
        {
            throw new TransactionNotActiveException();
        }
    }
View Full Code Here

Examples of org.jpox.exceptions.TransactionNotActiveException

     */
    protected void assertWritable()
    {
        if (!getTransaction().isActive() && !getTransaction().getNontransactionalWrite())
        {
            throw new TransactionNotActiveException();
        }
    }
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.