Package org.neo4j.cypherdsl.core
Interface StatementBuilder
-
- All Superinterfaces:
ExposesCreate,ExposesMatch,ExposesMerge,ExposesReturning,ExposesSubqueryCall,ExposesUnwind
@API(status=EXPERIMENTAL, since="1.0") public interface StatementBuilder extends ExposesMatch, ExposesCreate, ExposesMerge, ExposesUnwind, ExposesReturning, ExposesSubqueryCall- Since:
- 1.0
- Author:
- Michael J. Simons, Gerrit Meier, Andreas Berger
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceStatementBuilder.BuildableMatchAndUpdateA buildable ongoing MATCH and UPDATE.static interfaceStatementBuilder.BuildableOngoingMergeActionAn interface combining a buildable MATCH and UPDATE with the possibility to add actions after a MERGE clause.static interfaceStatementBuilder.BuildableStatementA statement that has all information required to be build and exposes a build method.static interfaceStatementBuilder.ExposesDeleteA step that exposes only the delete clause.static interfaceStatementBuilder.ExposesExistentialSubqueryCallA shared marker interface for things that can be turned into a subquery to be used inside the WHERE clause.static interfaceStatementBuilder.ExposesLimitA step that exposes theStatementBuilder.ExposesLimit.limit(Number)method.static interfaceStatementBuilder.ExposesMergeActionProvides a way to specify an action that happens after aMERGEclause.static interfaceStatementBuilder.ExposesOrderBySeeStatementBuilder.TerminalExposesOrderBy, but on a with clause.static interfaceStatementBuilder.ExposesSetSet part of a statement.static interfaceStatementBuilder.ExposesSetAndRemoveA step that exposes the set clause.static interfaceStatementBuilder.ExposesSkipA step that exposes theStatementBuilder.ExposesSkip.skip(Number)method.static interfaceStatementBuilder.ExposesUpdatingClauseA step providing all the supported updating clauses (DELETE, SET)static interfaceStatementBuilder.ExposesWithA step that exposes theWITHclause.static interfaceStatementBuilder.OngoingMatchAndReturnWithOrderCombines the capabilities of skip, limit and adds additional expressions to the order-by items.static interfaceStatementBuilder.OngoingMatchAndUpdateAfter a MATCH..UPDATE chain has been established, a RETURN can be added, a pipeline with WITH can be started or more mutating steps can be added.static interfaceStatementBuilder.OngoingMergeAn ongoing update statement that can be used to chain more updating statements, define actions on a merge or add a with or return clause.static interfaceStatementBuilder.OngoingMergeActionA variant ofStatementBuilder.ExposesSetthat allows for further chaining of actions.static interfaceStatementBuilder.OngoingOrderDefinitionAn intermediate step while defining the order of a with clause.static interfaceStatementBuilder.OngoingReadingA match that exposesreturningand for which it is not decided whether the optional where part has been used or note.static interfaceStatementBuilder.OngoingReadingAndReturnA match that knows what to return and which is ready to be build.static interfaceStatementBuilder.OngoingReadingAndWithRepresents a reading statement ending in a with clause, potentially already having an order and not exposing order methods.static interfaceStatementBuilder.OngoingReadingAndWithWithSkipThe union type of an ongoing reading with a WITH and a SKIP clause.static interfaceStatementBuilder.OngoingReadingAndWithWithWhereAndOrderCombines the capabilities of skip, limit and adds additional expressions to the order-by items.static interfaceStatementBuilder.OngoingReadingWithoutWhereA match that exposesreturningandwheremethods to add required information.static interfaceStatementBuilder.OngoingReadingWithWhereA match that has a non-emptywhere-part.static interfaceStatementBuilder.OngoingUnwindBuilder part for unwinding.static interfaceStatementBuilder.OngoingUpdateAn ongoing update statement that can be used to chain more update statements or add a with or return clause.static interfaceStatementBuilder.OrderableOngoingReadingAndWithstatic interfaceStatementBuilder.OrderableOngoingReadingAndWithWithoutWhereA match that knows what to pipe to the next part of a multi part query.static interfaceStatementBuilder.OrderableOngoingReadingAndWithWithWherestatic interfaceStatementBuilder.TerminalExposesLimitA step that exposes theStatementBuilder.TerminalExposesLimit.limit(Number)method.static interfaceStatementBuilder.TerminalExposesOrderByA step that exposes several methods to specify ordering.static interfaceStatementBuilder.TerminalExposesSkipA step that exposes theStatementBuilder.TerminalExposesSkip.skip(Number)method.static interfaceStatementBuilder.TerminalOngoingOrderDefinitionAn intermediate step while defining the order of a result set.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StatementBuilder.OrderableOngoingReadingAndWithWithoutWherewith(java.lang.String... variables)Starts a with clause by passing variables to it.StatementBuilder.OrderableOngoingReadingAndWithWithoutWherewith(Expression... expressions)Allows for queries starting withwith range(1,10) as x return xor similar.StatementBuilder.OrderableOngoingReadingAndWithWithoutWherewith(Named... expressions)Starts a with clause by passing named expressions to it.-
Methods inherited from interface org.neo4j.cypherdsl.core.ExposesCreate
create
-
Methods inherited from interface org.neo4j.cypherdsl.core.ExposesMatch
match, match, optionalMatch
-
Methods inherited from interface org.neo4j.cypherdsl.core.ExposesMerge
merge
-
Methods inherited from interface org.neo4j.cypherdsl.core.ExposesReturning
returning, returning, returning, returningDistinct, returningDistinct, returningDistinct
-
Methods inherited from interface org.neo4j.cypherdsl.core.ExposesSubqueryCall
call
-
Methods inherited from interface org.neo4j.cypherdsl.core.ExposesUnwind
unwind, unwind, unwind
-
-
-
-
Method Detail
-
with
StatementBuilder.OrderableOngoingReadingAndWithWithoutWhere with(java.lang.String... variables)
Starts a with clause by passing variables to it.- Parameters:
variables- The variables to start the query with- Returns:
- An ongoing read, exposing return and further matches.
- Since:
- 2020.1.2
-
with
StatementBuilder.OrderableOngoingReadingAndWithWithoutWhere with(Named... expressions)
Starts a with clause by passing named expressions to it.- Parameters:
expressions- The expressions to start the query with- Returns:
- An ongoing read, exposing return and further matches.
- Since:
- 2020.1.2
-
with
StatementBuilder.OrderableOngoingReadingAndWithWithoutWhere with(Expression... expressions)
Allows for queries starting withwith range(1,10) as x return xor similar.- Parameters:
expressions- The expressions to start the query with- Returns:
- An ongoing read, exposing return and further matches.
-
-