Package org.jpox.jdo.exceptions

Examples of org.jpox.jdo.exceptions.TransactionNotReadableException


            // Throw exception if query is closed (e.g JDO2 [14.6.1])
            throw new JPOXUserException(LOCALISER.msg("021013")).setFatal();
        }
        if (!om.getTransaction().isActive() && !om.getTransaction().getNontransactionalRead())
        {
            throw new TransactionNotReadableException();
        }

        boolean failed = true; // flag to use for checking the state of the execution results
        long start = System.currentTimeMillis();
View Full Code Here


    public LifeCycleState transitionReadField(StateManager sm, boolean isLoaded)
    {
        Transaction tx = sm.getObjectManager().getTransaction();
    if (!tx.isActive() && !tx.getNontransactionalRead())
    {
          throw new TransactionNotReadableException(LOCALISER.msg("027002"), sm.getInternalObjectId());
    }
        if (tx.isActive() && !tx.getOptimistic())
        {
            // Save the fields for rollback.
            sm.saveFields();
View Full Code Here

    public LifeCycleState transitionReadField(StateManager sm, boolean isLoaded)
    {
        Transaction tx = sm.getObjectManager().getTransaction();
        if (!tx.isActive() && !tx.getNontransactionalRead())
        {
            throw new TransactionNotReadableException(LOCALISER.msg("027000"), sm.getInternalObjectId());
        }
        if (!tx.getOptimistic() && tx.isActive())
        {
            return changeState(sm, P_CLEAN);
        }
View Full Code Here

TOP

Related Classes of org.jpox.jdo.exceptions.TransactionNotReadableException

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.