@API(status=INTERNAL,
since="6.0")
public enum CypherGenerator
extends Enum<CypherGenerator>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
org.neo4j.cypherdsl.core.Expression[] |
createGenericReturnStatement() |
String |
createOrderByFragment(Sort sort)
Creates an order by fragment, assuming the node to match is named `n`
|
org.neo4j.cypherdsl.core.Expression[] |
createReturnStatementForMatch(NodeDescription<?> nodeDescription) |
org.neo4j.cypherdsl.core.Expression[] |
createReturnStatementForMatch(NodeDescription<?> nodeDescription,
Predicate<String> includeField) |
org.neo4j.cypherdsl.core.Node |
createRootNode(NodeDescription<?> nodeDescription) |
org.neo4j.cypherdsl.core.Statement |
createStatementReturningDynamicLabels(NodeDescription<?> nodeDescription)
Creates a statement that returns all labels of a node that are not part of a list parameter named
Constants.NAME_OF_STATIC_LABELS_PARAM. |
org.neo4j.cypherdsl.core.Statement |
prepareDeleteOf(Neo4jPersistentEntity<?> neo4jPersistentEntity,
RelationshipDescription relationshipDescription) |
org.neo4j.cypherdsl.core.Statement |
prepareDeleteOf(NodeDescription<?> nodeDescription) |
org.neo4j.cypherdsl.core.Statement |
prepareDeleteOf(NodeDescription<?> nodeDescription,
org.neo4j.cypherdsl.core.Condition condition) |
org.neo4j.cypherdsl.core.StatementBuilder.OrderableOngoingReadingAndWith |
prepareMatchOf(NodeDescription<?> nodeDescription) |
org.neo4j.cypherdsl.core.StatementBuilder.OrderableOngoingReadingAndWith |
prepareMatchOf(NodeDescription<?> nodeDescription,
org.neo4j.cypherdsl.core.Condition condition)
This will create a match statement that fits the given node description and may contains additional conditions.
|
org.neo4j.cypherdsl.core.StatementBuilder.OngoingReading |
prepareMatchOf(NodeDescription<?> nodeDescription,
List<org.neo4j.cypherdsl.core.PatternElement> initialMatchOn,
org.neo4j.cypherdsl.core.Condition condition) |
org.neo4j.cypherdsl.core.StatementBuilder.OngoingReading |
prepareMatchOf(NodeDescription<?> nodeDescription,
RelationshipDescription relationshipDescription,
List<org.neo4j.cypherdsl.core.PatternElement> initialMatchOn,
org.neo4j.cypherdsl.core.Condition condition) |
org.neo4j.cypherdsl.core.Statement |
prepareSaveOf(NodeDescription<?> nodeDescription,
UnaryOperator<org.neo4j.cypherdsl.core.StatementBuilder.OngoingMatchAndUpdate> updateDecorator) |
org.neo4j.cypherdsl.core.Statement |
prepareSaveOfMultipleInstancesOf(NodeDescription<?> nodeDescription) |
org.neo4j.cypherdsl.core.Statement |
prepareSaveOfRelationship(Neo4jPersistentEntity<?> neo4jPersistentEntity,
RelationshipDescription relationship,
String dynamicRelationshipType) |
org.neo4j.cypherdsl.core.Statement |
prepareSaveOfRelationshipWithProperties(Neo4jPersistentEntity<?> neo4jPersistentEntity,
RelationshipDescription relationship,
boolean isNew,
String dynamicRelationshipType) |
static CypherGenerator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CypherGenerator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CypherGenerator INSTANCE
public static CypherGenerator[] values()
for (CypherGenerator c : CypherGenerator.values()) System.out.println(c);
public static CypherGenerator valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic org.neo4j.cypherdsl.core.StatementBuilder.OrderableOngoingReadingAndWith prepareMatchOf(NodeDescription<?> nodeDescription)
nodeDescription - The node description for which a match clause should be generatedprepareMatchOf(NodeDescription, Condition)public org.neo4j.cypherdsl.core.StatementBuilder.OrderableOngoingReadingAndWith prepareMatchOf(NodeDescription<?> nodeDescription, @Nullable org.neo4j.cypherdsl.core.Condition condition)
WITH clause of this statement contains all nodes and relationships necessary to map a record to the given
nodeDescription.
It is recommended to use Cypher.asterisk() to return everything from the query in the end.
The root node is guaranteed to have the symbolic name n.
nodeDescription - The node description for which a match clause should be generatedcondition - Optional conditions to addpublic org.neo4j.cypherdsl.core.StatementBuilder.OngoingReading prepareMatchOf(NodeDescription<?> nodeDescription, @Nullable List<org.neo4j.cypherdsl.core.PatternElement> initialMatchOn, @Nullable org.neo4j.cypherdsl.core.Condition condition)
public org.neo4j.cypherdsl.core.StatementBuilder.OngoingReading prepareMatchOf(NodeDescription<?> nodeDescription, RelationshipDescription relationshipDescription, @Nullable List<org.neo4j.cypherdsl.core.PatternElement> initialMatchOn, @Nullable org.neo4j.cypherdsl.core.Condition condition)
@NonNull public org.neo4j.cypherdsl.core.Node createRootNode(NodeDescription<?> nodeDescription)
public org.neo4j.cypherdsl.core.Statement createStatementReturningDynamicLabels(NodeDescription<?> nodeDescription)
Constants.NAME_OF_STATIC_LABELS_PARAM. Those are the "dynamic labels" of a node as set through SDN.nodeDescription - The node description for which the statement should be generatedpublic org.neo4j.cypherdsl.core.Statement prepareDeleteOf(NodeDescription<?> nodeDescription)
public org.neo4j.cypherdsl.core.Statement prepareDeleteOf(NodeDescription<?> nodeDescription, @Nullable org.neo4j.cypherdsl.core.Condition condition)
public org.neo4j.cypherdsl.core.Statement prepareSaveOf(NodeDescription<?> nodeDescription, UnaryOperator<org.neo4j.cypherdsl.core.StatementBuilder.OngoingMatchAndUpdate> updateDecorator)
public org.neo4j.cypherdsl.core.Statement prepareSaveOfMultipleInstancesOf(NodeDescription<?> nodeDescription)
@NonNull public org.neo4j.cypherdsl.core.Statement prepareSaveOfRelationship(Neo4jPersistentEntity<?> neo4jPersistentEntity, RelationshipDescription relationship, @Nullable String dynamicRelationshipType)
@NonNull public org.neo4j.cypherdsl.core.Statement prepareSaveOfRelationshipWithProperties(Neo4jPersistentEntity<?> neo4jPersistentEntity, RelationshipDescription relationship, boolean isNew, @Nullable String dynamicRelationshipType)
@NonNull public org.neo4j.cypherdsl.core.Statement prepareDeleteOf(Neo4jPersistentEntity<?> neo4jPersistentEntity, RelationshipDescription relationshipDescription)
public org.neo4j.cypherdsl.core.Expression[] createReturnStatementForMatch(NodeDescription<?> nodeDescription)
@Nullable public String createOrderByFragment(@Nullable Sort sort)
sort - The sort that should be turned into a valid Cypher ORDER-clausepublic org.neo4j.cypherdsl.core.Expression[] createReturnStatementForMatch(NodeDescription<?> nodeDescription, Predicate<String> includeField)
nodeDescription - Description of the root nodeincludeField - A predicate derived from the set of included properties. This is only relevant in various forms
of projections which allow to exclude one or more fields.public org.neo4j.cypherdsl.core.Expression[] createGenericReturnStatement()
Copyright © 2019–2021 Neo4j, Neo4j Sweden AB. All rights reserved.