com.couchbase.client.java.query.dsl.path.UpdateSetOrUnsetPath Maven / Gradle / Ivy
/*
* Copyright (c) 2016 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.couchbase.client.java.query.dsl.path;
import com.couchbase.client.java.document.json.JsonArray;
import com.couchbase.client.java.document.json.JsonObject;
import com.couchbase.client.java.query.dsl.Expression;
import com.couchbase.client.java.query.dsl.clause.UpdateForClause;
public interface UpdateSetOrUnsetPath extends MutateWherePath {
UpdateUnsetPath unset(String path);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateUnsetPath unset(String path, Expression updateFor);
UpdateUnsetPath unset(Expression path);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateUnsetPath unset(Expression path, Expression updateFor);
UpdateSetPath set(String path, Expression value);
UpdateSetPath set(String path, JsonObject value);
UpdateSetPath set(String path, JsonArray value);
UpdateSetPath set(String path, String value);
UpdateSetPath set(String path, int value);
UpdateSetPath set(String path, long value);
UpdateSetPath set(String path, double value);
UpdateSetPath set(String path, float value);
UpdateSetPath set(String path, boolean value);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(String path, Expression value, Expression updateFor);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(String path, JsonObject value, Expression updateFor);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(String path, JsonArray value, Expression updateFor);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(String path, String value, Expression updateFor);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(String path, int value, Expression updateFor);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(String path, long value, Expression updateFor);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(String path, double value, Expression updateFor);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(String path, float value, Expression updateFor);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(String path, boolean value, Expression updateFor);
UpdateSetPath set(Expression path, Expression value);
UpdateSetPath set(Expression path, JsonObject value);
UpdateSetPath set(Expression path, JsonArray value);
UpdateSetPath set(Expression path, String value);
UpdateSetPath set(Expression path, int value);
UpdateSetPath set(Expression path, long value);
UpdateSetPath set(Expression path, double value);
UpdateSetPath set(Expression path, float value);
UpdateSetPath set(Expression path, boolean value);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(Expression path, Expression value, Expression updateFor);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(Expression path, JsonObject value, Expression updateFor);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(Expression path, JsonArray value, Expression updateFor);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(Expression path, String value, Expression updateFor);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(Expression path, int value, Expression updateFor);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(Expression path, long value, Expression updateFor);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(Expression path, double value, Expression updateFor);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(Expression path, float value, Expression updateFor);
/** @param updateFor a "FOR ... IN ... WHEN" clause. See {@link UpdateForClause} to correctly construct such an expression. */
UpdateSetPath set(Expression path, boolean value, Expression updateFor);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy