context.store.markForUpdate(context.txn, oid);
}
state = State.MODIFIED;
break;
case FLUSHED:
exception = new TransactionNotActiveException(
"Attempt to get the object associated with a managed" +
" reference when its transaction is not active");
break;
case NEW:
case MODIFIED:
break;
case REMOVED_EMPTY:
case REMOVED_FETCHED:
throw new ObjectNotFoundException("The object is not found");
default:
throw new AssertionError();
}
} catch (TransactionNotActiveException e) {
exception = new TransactionNotActiveException(
"Attempt to get the object associated with a managed" +
" reference when its transaction is not active: " +
e.getMessage(),
e);
} catch (RuntimeException e) {