Package org.neo4j.cypherdsl.core
Interface ExposesReturning
-
- All Known Subinterfaces:
LoadCSVStatementBuilder,StatementBuilder,StatementBuilder.BuildableMatchAndUpdate,StatementBuilder.BuildableOngoingMergeAction,StatementBuilder.OngoingInQueryCallWithReturnFields,StatementBuilder.OngoingMatchAndUpdate,StatementBuilder.OngoingMerge,StatementBuilder.OngoingReading,StatementBuilder.OngoingReadingAndWith,StatementBuilder.OngoingReadingAndWithWithSkip,StatementBuilder.OngoingReadingAndWithWithWhereAndOrder,StatementBuilder.OngoingReadingWithoutWhere,StatementBuilder.OngoingReadingWithWhere,StatementBuilder.OngoingStandaloneCallWithReturnFields,StatementBuilder.OngoingUpdate,StatementBuilder.OrderableOngoingReadingAndWith,StatementBuilder.OrderableOngoingReadingAndWithWithoutWhere,StatementBuilder.OrderableOngoingReadingAndWithWithWhere
@API(status=EXPERIMENTAL, since="1.0") public interface ExposesReturningReturn part of a statement.- Since:
- 1.0
- Author:
- Michael J. Simons
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StatementBuilder.OngoingReadingAndReturnreturning(java.lang.String... variables)Creates theRETURNclause.StatementBuilder.OngoingReadingAndReturnreturning(java.util.Collection<Expression> expressions)Create a match that returns one or more expressions.StatementBuilder.OngoingReadingAndReturnreturning(Expression... expressions)Create a match that returns one or more expressions.default StatementBuilder.OngoingReadingAndReturnreturning(Named... variables)Creates theRETURNclause.default StatementBuilder.OngoingReadingAndReturnreturningDistinct(java.lang.String... variables)Creates aRETURNclause containing theDISTINCTkeyword.StatementBuilder.OngoingReadingAndReturnreturningDistinct(java.util.Collection<Expression> expressions)Creates aRETURNclause returning the distinct set of one or more expressions.StatementBuilder.OngoingReadingAndReturnreturningDistinct(Expression... expressions)Creates aRETURNclause returning the distinct set of one or more expressions.default StatementBuilder.OngoingReadingAndReturnreturningDistinct(Named... variables)Creates aRETURNclause containing theDISTINCTkeyword.StatementBuilder.OngoingReadingAndReturnreturningRaw(Expression rawExpression)Creates aRETURNclause from a raw Cypher expression created viaCypher.raw(String, Object...).
-
-
-
Method Detail
-
returning
@NotNull @CheckReturnValue default StatementBuilder.OngoingReadingAndReturn returning(java.lang.String... variables)
Creates theRETURNclause. All variables passed viavariablesmust be validsymbolic names.Expression.property(String...)must be used to return single properties.- Parameters:
variables- The named things to return- Returns:
- A build step with a defined list of things to return.
-
returning
@NotNull @CheckReturnValue default StatementBuilder.OngoingReadingAndReturn returning(Named... variables)
Creates theRETURNclause.- Parameters:
variables- The named things to return- Returns:
- A build step with a defined list of things to return.
-
returning
@NotNull @CheckReturnValue StatementBuilder.OngoingReadingAndReturn returning(Expression... expressions)
Create a match that returns one or more expressions.- Parameters:
expressions- The expressions to be returned. Must not be null and be at least one expression.- Returns:
- A match that can be build now
-
returning
@NotNull @CheckReturnValue StatementBuilder.OngoingReadingAndReturn returning(java.util.Collection<Expression> expressions)
Create a match that returns one or more expressions.- Parameters:
expressions- The expressions to be returned. Must not be null and be at least one expression.- Returns:
- A match that can be build now
-
returningDistinct
@NotNull @CheckReturnValue default StatementBuilder.OngoingReadingAndReturn returningDistinct(java.lang.String... variables)
Creates aRETURNclause containing theDISTINCTkeyword. All variables passed viavariablesmust be validsymbolic names.Expression.property(String...)must be used to return single properties.- Parameters:
variables- The named things to return- Returns:
- A build step with a defined list of things to return.
-
returningDistinct
@NotNull @CheckReturnValue default StatementBuilder.OngoingReadingAndReturn returningDistinct(Named... variables)
Creates aRETURNclause containing theDISTINCTkeyword.- Parameters:
variables- The named things to return- Returns:
- A build step with a defined list of things to return.
-
returningDistinct
@NotNull @CheckReturnValue StatementBuilder.OngoingReadingAndReturn returningDistinct(Expression... expressions)
Creates aRETURNclause returning the distinct set of one or more expressions.- Parameters:
expressions- The expressions to be returned. Must not be null and be at least one expression.- Returns:
- A match that can be build now
-
returningDistinct
@NotNull @CheckReturnValue StatementBuilder.OngoingReadingAndReturn returningDistinct(java.util.Collection<Expression> expressions)
Creates aRETURNclause returning the distinct set of one or more expressions.- Parameters:
expressions- The expressions to be returned. Must not be null and be at least one expression.- Returns:
- A match that can be build now
-
returningRaw
@NotNull @CheckReturnValue StatementBuilder.OngoingReadingAndReturn returningRaw(Expression rawExpression)
Creates aRETURNclause from a raw Cypher expression created viaCypher.raw(String, Object...). The expression maybe aliased but it must resolve to a raw element- Parameters:
rawExpression- Must be a plain raw or an aliased raw expression. To eventually render as valid Cypher, it must contain theRETURNkeyword.- Returns:
- A match that can be build now
- Since:
- 2021.2.1
-
-