public class Neo4jAssociationQueries extends Object
| Constructor and Description |
|---|
Neo4jAssociationQueries(EntityKeyMetadata ownerEntityKeyMetadata,
AssociationKeyMetadata associationKeyMetadata) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
appendEntityNode(String alias,
EntityKeyMetadata entityKeyMetadata,
StringBuilder queryBuilder) |
protected static void |
appendLabel(EntityKeyMetadata entityKeyMetadata,
StringBuilder queryBuilder) |
protected static void |
appendMatchOwnerEntityNode(StringBuilder queryBuilder,
EntityKeyMetadata ownerEntityKeyMetadata) |
protected static void |
appendProperties(EntityKeyMetadata entityKeyMetadata,
StringBuilder queryBuilder) |
protected static void |
appendProperties(StringBuilder queryBuilder,
String[] columnNames,
int offset) |
protected static void |
appendRelationshipType(StringBuilder queryBuilder,
String relationshipType) |
org.neo4j.graphdb.Relationship |
createRelationshipForEmbeddedAssociation(org.neo4j.graphdb.GraphDatabaseService executionEngine,
AssociationKey associationKey,
EntityKey embeddedKey)
Give an embedded association, creates all the nodes and relationships required to represent it.
|
org.neo4j.graphdb.Relationship |
findRelationship(org.neo4j.graphdb.GraphDatabaseService executionEngine,
AssociationKey associationKey,
RowKey rowKey)
Returns the relationship corresponding to the
AssociationKey and RowKey. |
protected Map<String,Object> |
params(Object[] columnValues) |
protected Map<String,Object> |
params(Object[] columnValues,
int offset) |
void |
removeAssociation(org.neo4j.graphdb.GraphDatabaseService executionEngine,
AssociationKey associationKey)
Removes the relationship(s) representing the given association.
|
void |
removeAssociationRow(org.neo4j.graphdb.GraphDatabaseService executionEngine,
AssociationKey associationKey,
RowKey rowKey)
Remove an association row
|
protected <T> T |
singleResult(org.neo4j.graphdb.Result result) |
public Neo4jAssociationQueries(EntityKeyMetadata ownerEntityKeyMetadata, AssociationKeyMetadata associationKeyMetadata)
public void removeAssociation(org.neo4j.graphdb.GraphDatabaseService executionEngine,
AssociationKey associationKey)
executionEngine - the GraphDatabaseService used to run the queryassociationKey - represents the associationpublic org.neo4j.graphdb.Relationship findRelationship(org.neo4j.graphdb.GraphDatabaseService executionEngine,
AssociationKey associationKey,
RowKey rowKey)
AssociationKey and RowKey.executionEngine - the GraphDatabaseService used to run the queryassociationKey - represents the associationrowKey - represents a row in an associationpublic void removeAssociationRow(org.neo4j.graphdb.GraphDatabaseService executionEngine,
AssociationKey associationKey,
RowKey rowKey)
executionEngine - the GraphDatabaseService used to run the queryassociationKey - represents the associationrowKey - represents a row in an associationpublic org.neo4j.graphdb.Relationship createRelationshipForEmbeddedAssociation(org.neo4j.graphdb.GraphDatabaseService executionEngine,
AssociationKey associationKey,
EntityKey embeddedKey)
executionEngine - the GraphDatabaseService to run the queryassociationKey - the AssociationKey identifying the associationembeddedKey - the EntityKey identifying the embedded componentRelationship that represents the associationprotected static void appendLabel(EntityKeyMetadata entityKeyMetadata, StringBuilder queryBuilder)
protected static void appendProperties(EntityKeyMetadata entityKeyMetadata, StringBuilder queryBuilder)
protected static void appendProperties(StringBuilder queryBuilder, String[] columnNames, int offset)
protected static void appendMatchOwnerEntityNode(StringBuilder queryBuilder, EntityKeyMetadata ownerEntityKeyMetadata)
protected static void appendEntityNode(String alias, EntityKeyMetadata entityKeyMetadata, StringBuilder queryBuilder)
protected static void appendRelationshipType(StringBuilder queryBuilder, String relationshipType)
protected <T> T singleResult(org.neo4j.graphdb.Result result)
Copyright © 2010–2016 Hibernate. All rights reserved.