/** * @param cacheCtx Cache context. * @param retval Return value flag. * @param mvccOp SQL operation flag. * @throws IgniteCheckedException If failed. */ private void beforeRemove(GridCacheContext cacheCtx, boolean retval, boolean mvccOp) throws IgniteCheckedException { assert !mvccOp || cacheCtx.mvccEnabled(); checkUpdatesAllowed(cacheCtx); cacheCtx.checkSecurity(SecurityPermission.CACHE_REMOVE); if (cacheCtx.mvccEnabled() && !isOperationAllowed(mvccOp)) throw new IgniteCheckedException(TX_TYPE_MISMATCH_ERR_MSG); if (retval) needReturnValue(true); checkValid(); }
/** * @param cacheCtx Cache context. * @param retval Return value flag. * @param mvccOp SQL operation flag. * @throws IgniteCheckedException If failed. */ private void beforePut(GridCacheContext cacheCtx, boolean retval, boolean mvccOp) throws IgniteCheckedException { assert !mvccOp || cacheCtx.mvccEnabled(); checkUpdatesAllowed(cacheCtx); cacheCtx.checkSecurity(SecurityPermission.CACHE_PUT); if (cacheCtx.mvccEnabled() && !isOperationAllowed(mvccOp)) throw new IgniteCheckedException(TX_TYPE_MISMATCH_ERR_MSG); if (retval) needReturnValue(true); checkValid(); init(); }
checkUpdatesAllowed(cacheCtx);
/** * @param cacheCtx Cache context. * @param retval Return value flag. * @param mvccOp SQL operation flag. * @throws IgniteCheckedException If failed. */ private void beforeRemove(GridCacheContext cacheCtx, boolean retval, boolean mvccOp) throws IgniteCheckedException { assert !mvccOp || cacheCtx.mvccEnabled(); checkUpdatesAllowed(cacheCtx); cacheCtx.checkSecurity(SecurityPermission.CACHE_REMOVE); if (cacheCtx.mvccEnabled() && !isOperationAllowed(mvccOp)) throw new IgniteCheckedException(TX_TYPE_MISMATCH_ERR_MSG); if (retval) needReturnValue(true); checkValid(); }
/** * @param cacheCtx Cache context. * @param retval Return value flag. * @param mvccOp SQL operation flag. * @throws IgniteCheckedException If failed. */ private void beforePut(GridCacheContext cacheCtx, boolean retval, boolean mvccOp) throws IgniteCheckedException { assert !mvccOp || cacheCtx.mvccEnabled(); checkUpdatesAllowed(cacheCtx); cacheCtx.checkSecurity(SecurityPermission.CACHE_PUT); if (cacheCtx.mvccEnabled() && !isOperationAllowed(mvccOp)) throw new IgniteCheckedException(TX_TYPE_MISMATCH_ERR_MSG); if (retval) needReturnValue(true); checkValid(); init(); }