Package org.datanucleus.jdo.exceptions

Examples of org.datanucleus.jdo.exceptions.TransactionNotReadableException


    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.datanucleus.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.