All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.couchbase.client.java.query.dsl.path.UpdateSetOrUnsetPath Maven / Gradle / Ivy

There is a newer version: 3.7.7
Show newest version
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