@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.Statement |
createRelationshipCreationQuery(Neo4jPersistentEntity<?> neo4jPersistentEntity,
RelationshipDescription relationship,
String dynamicRelationshipType,
Long relatedInternalId) |
org.neo4j.cypherdsl.core.Statement |
createRelationshipRemoveQuery(Neo4jPersistentEntity<?> neo4jPersistentEntity,
RelationshipDescription relationshipDescription,
Neo4jPersistentEntity relatedNode) |
org.neo4j.cypherdsl.core.Statement |
createRelationshipWithPropertiesCreationQuery(Neo4jPersistentEntity<?> neo4jPersistentEntity,
RelationshipDescription relationship,
Long relatedInternalId) |
org.neo4j.cypherdsl.core.Expression |
createReturnStatementForMatch(NodeDescription<?> nodeDescription) |
org.neo4j.cypherdsl.core.Expression |
createReturnStatementForMatch(NodeDescription<?> nodeDescription,
List<String> inputProperties) |
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(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.Statement |
prepareSaveOf(NodeDescription<?> nodeDescription,
UnaryOperator<org.neo4j.cypherdsl.core.StatementBuilder.OngoingMatchAndUpdate> updateDecorator) |
org.neo4j.cypherdsl.core.Statement |
prepareSaveOfMultipleInstancesOf(NodeDescription<?> nodeDescription) |
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.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 createRelationshipCreationQuery(Neo4jPersistentEntity<?> neo4jPersistentEntity, RelationshipDescription relationship, @Nullable String dynamicRelationshipType, Long relatedInternalId)
@NonNull public org.neo4j.cypherdsl.core.Statement createRelationshipWithPropertiesCreationQuery(Neo4jPersistentEntity<?> neo4jPersistentEntity, RelationshipDescription relationship, Long relatedInternalId)
@NonNull public org.neo4j.cypherdsl.core.Statement createRelationshipRemoveQuery(Neo4jPersistentEntity<?> neo4jPersistentEntity, RelationshipDescription relationshipDescription, Neo4jPersistentEntity relatedNode)
public org.neo4j.cypherdsl.core.Expression createReturnStatementForMatch(NodeDescription<?> nodeDescription)
public org.neo4j.cypherdsl.core.Expression createReturnStatementForMatch(NodeDescription<?> nodeDescription, @Nullable List<String> inputProperties)
nodeDescription
- Description of the root nodeinputProperties
- A list of Java properties of the domain to be included. Those properties are compared with
the field names of graph properties respectively relationships.Copyright © 2019–2020 Neo4j, Neo4j Sweden AB. All rights reserved.