Package org.datanucleus.exceptions

Examples of org.datanucleus.exceptions.TransactionActiveOnCloseException


        {
            throw new NucleusUserException(LOCALISER.msg("010002"));
        }
        if (tx.isActive())
        {
            throw new TransactionActiveOnCloseException(this);
        }

        // Commit any outstanding non-tx updates
        if (!dirtySMs.isEmpty() && tx.getNontransactionalWrite())
        {
View Full Code Here


            {
                ObjectManager om = pm.getObjectManager();
                if (om.getTransaction().isActive())
                {
                    // Note: we replicate the exception that would have come from pm.close() when tx active
                    TransactionActiveOnCloseException tae = new TransactionActiveOnCloseException(om);
                    exceptions.add(new JDOUserException(tae.getMessage(), pm));
                }
            }
            if (!exceptions.isEmpty())
            {
                throw new JDOUserException(LOCALISER.msg("012002"), exceptions.toArray(new Throwable[exceptions.size()]));
View Full Code Here

        {
            throw new NucleusUserException(LOCALISER.msg("010002"));
        }
        if (tx.isActive())
        {
            throw new TransactionActiveOnCloseException(this);
        }

        if (!dirtySMs.isEmpty() && tx.getNontransactionalWrite())
        {
            // Non-tx write has outstanding updates, so commit them
View Full Code Here

TOP

Related Classes of org.datanucleus.exceptions.TransactionActiveOnCloseException

Copyright © 2018 www.massapicom. 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.