Module org.neo4j.cypherdsl.core
Package org.neo4j.cypherdsl.core
Interface StatementBuilder.ExposesSet
- All Known Subinterfaces:
ExposesSubqueryCall.BuildableSubquery,StatementBuilder.BuildableMatchAndUpdate,StatementBuilder.BuildableOngoingMergeAction,StatementBuilder.ExposesSetAndRemove,StatementBuilder.ExposesUpdatingClause,StatementBuilder.OngoingMatchAndUpdate,StatementBuilder.OngoingMerge,StatementBuilder.OngoingReading,StatementBuilder.OngoingReadingAndWith,StatementBuilder.OngoingReadingAndWithWithSkip,StatementBuilder.OngoingReadingAndWithWithWhereAndOrder,StatementBuilder.OngoingReadingWithoutWhere,StatementBuilder.OngoingReadingWithWhere,StatementBuilder.OngoingUpdate,StatementBuilder.OrderableOngoingReadingAndWith,StatementBuilder.OrderableOngoingReadingAndWithWithoutWhere,StatementBuilder.OrderableOngoingReadingAndWithWithWhere,StatementBuilder.VoidCall
- Enclosing interface:
- StatementBuilder
public static interface StatementBuilder.ExposesSet
Set part of a statement.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionmutate(Expression target, Expression properties) Creates a+=operation.default @NotNull StatementBuilder.BuildableMatchAndUpdatemutate(Named variable, Expression properties) Creates a+=operation.set(Collection<? extends Expression> expressions) Adds aSETclause to the statement.set(Expression... expressions) Adds aSETclause to the statement.default @NotNull StatementBuilder.BuildableMatchAndUpdateset(Named variable, Expression expression) Adds aSETclause to the statement, modifying the given named thing with an expression.
-
Method Details
-
set
@NotNull @CheckReturnValue @NotNull StatementBuilder.BuildableMatchAndUpdate set(Expression... expressions) Adds aSETclause to the statement. The list of expressions must be even, each pair will be turned into SET operation.- Parameters:
expressions- The list of expressions to use in a set clause.- Returns:
- An ongoing match and update
-
set
@NotNull @CheckReturnValue @NotNull StatementBuilder.BuildableMatchAndUpdate set(Collection<? extends Expression> expressions) Adds aSETclause to the statement. The list of expressions must be even, each pair will be turned into SET operation.- Parameters:
expressions- The list of expressions to use in a set clause.- Returns:
- An ongoing match and update
- Since:
- 2021.2.2
-
set
@NotNull @CheckReturnValue default @NotNull StatementBuilder.BuildableMatchAndUpdate set(Named variable, Expression expression) Adds aSETclause to the statement, modifying the given named thing with an expression.- Parameters:
variable- The named thing to modifyexpression- The modifying expression- Returns:
- An ongoing match and update
-
mutate
@NotNull @CheckReturnValue @NotNull StatementBuilder.BuildableMatchAndUpdate mutate(Expression target, Expression properties) Creates a+=operation. The left hand side must resolve to a container (either a node or a relationship) of properties and the right hand side must be a map of new or updated properties- Parameters:
target- The target container that should be modifiedproperties- The new properties- Returns:
- An ongoing match and update
- Since:
- 2020.1.5
-
mutate
@NotNull @CheckReturnValue default @NotNull StatementBuilder.BuildableMatchAndUpdate mutate(Named variable, Expression properties) Creates a+=operation. The left hand side must resolve to a container (either a node or a relationship) of properties and the right hand side must be a map of new or updated properties- Parameters:
variable- The named thing to modifyproperties- The new properties- Returns:
- An ongoing match and update
- Since:
- 2020.1.5
-