Package org.datanucleus.api.jdo.exceptions

Examples of org.datanucleus.api.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("027000"), sm.getInternalObjectId());
        }
        else if (!tx.isActive() && sm.getClassMetaData().getIdentityType() == IdentityType.NONDURABLE)
        {
            // JDO2 spec 5.4.4
            throw new NucleusUserException("Not able to read fields of nondurable object when in HOLLOW state");
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

TOP

Related Classes of org.datanucleus.api.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.