public class EmbeddedNeo4jEntityQueries extends BaseNeo4jEntityQueries
EMBEDDED_ALIAS, EMBEDDED_REL, ENTITY_ALIAS
Constructor and Description |
---|
EmbeddedNeo4jEntityQueries(EntityKeyMetadata entityKeyMetadata) |
EmbeddedNeo4jEntityQueries(EntityKeyMetadata entityKeyMetadata,
TupleTypeContext tupleTypeContext) |
Modifier and Type | Method and Description |
---|---|
org.neo4j.graphdb.Node |
createEmbedded(org.neo4j.graphdb.GraphDatabaseService executionEngine,
Object[] columnValues)
Create a single node representing an embedded element.
|
org.neo4j.graphdb.ResourceIterator<org.neo4j.graphdb.Relationship> |
findAssociation(org.neo4j.graphdb.GraphDatabaseService executionEngine,
Object[] columnValues,
String role)
Find the relationships representing the association.
|
org.neo4j.graphdb.ResourceIterator<org.neo4j.graphdb.Node> |
findEntities(org.neo4j.graphdb.GraphDatabaseService executionEngine)
Find all the node representing the entity.
|
org.neo4j.graphdb.ResourceIterator<org.neo4j.graphdb.Node> |
findEntities(org.neo4j.graphdb.GraphDatabaseService executionEngine,
EntityKey[] keys)
Find the nodes corresponding to an array of entity keys.
|
org.neo4j.graphdb.Node |
findEntity(org.neo4j.graphdb.GraphDatabaseService executionEngine,
Object[] columnValues)
Find the node corresponding to an entity.
|
org.neo4j.graphdb.Node |
insertEntity(org.neo4j.graphdb.GraphDatabaseService executionEngine,
Object[] columnValues)
Creates the node corresponding to an entity.
|
void |
removeEntity(org.neo4j.graphdb.GraphDatabaseService executionEngine,
Object[] columnValues)
Remove the nodes representing the entity and the embedded elements attached to it.
|
void |
updateEmbeddedColumn(org.neo4j.graphdb.GraphDatabaseService executionEngine,
Object[] keyValues,
String embeddedColumn,
Object value)
Update the value of an embedded node property.
|
getCreateEmbeddedNodeQuery, getCreateEntityQuery, getCreateEntityWithPropertiesQuery, getFindAssociatedEntityQuery, getFindAssociatedEntityQuery, getFindAssociationPartialQuery, getFindAssociationQuery, getFindEmbeddedNodeQueries, getFindEntitiesQuery, getFindEntityQuery, getFindEntityWithEmbeddedEndNodeQuery, getRemoveColumnQuery, getRemoveEmbeddedPropertyQuery, getRemoveEntityQuery, getRemovePropertyQueries, getRemoveToOneAssociation, getUpdateEmbeddedColumnQuery, getUpdateEmbeddedNodeQuery, getUpdateEntityProperties, getUpdateEntityPropertiesQuery, getUpdateToOneQuery
public EmbeddedNeo4jEntityQueries(EntityKeyMetadata entityKeyMetadata)
public EmbeddedNeo4jEntityQueries(EntityKeyMetadata entityKeyMetadata, TupleTypeContext tupleTypeContext)
public org.neo4j.graphdb.ResourceIterator<org.neo4j.graphdb.Relationship> findAssociation(org.neo4j.graphdb.GraphDatabaseService executionEngine, Object[] columnValues, String role)
executionEngine
- the queries executorcolumnValues
- the values for the entity key column names of the owner noderole
- the relationship type mapping the role of the associationpublic org.neo4j.graphdb.Node createEmbedded(org.neo4j.graphdb.GraphDatabaseService executionEngine, Object[] columnValues)
executionEngine
- the GraphDatabaseService
used to run the querycolumnValues
- the values in EntityKey.getColumnValues()
public org.neo4j.graphdb.Node findEntity(org.neo4j.graphdb.GraphDatabaseService executionEngine, Object[] columnValues)
executionEngine
- the GraphDatabaseService
used to run the querycolumnValues
- the values in EntityKey.getColumnValues()
public org.neo4j.graphdb.ResourceIterator<org.neo4j.graphdb.Node> findEntities(org.neo4j.graphdb.GraphDatabaseService executionEngine, EntityKey[] keys)
executionEngine
- the GraphDatabaseService
used to run the querykeys
- an array of keys identifying the nodes to returnpublic org.neo4j.graphdb.Node insertEntity(org.neo4j.graphdb.GraphDatabaseService executionEngine, Object[] columnValues)
executionEngine
- the GraphDatabaseService
used to run the querycolumnValues
- the values in EntityKey.getColumnValues()
public org.neo4j.graphdb.ResourceIterator<org.neo4j.graphdb.Node> findEntities(org.neo4j.graphdb.GraphDatabaseService executionEngine)
executionEngine
- the GraphDatabaseService
used to run the querypublic void removeEntity(org.neo4j.graphdb.GraphDatabaseService executionEngine, Object[] columnValues)
executionEngine
- the GraphDatabaseService
used to run the querycolumnValues
- the values of the key identifying the entity to removepublic void updateEmbeddedColumn(org.neo4j.graphdb.GraphDatabaseService executionEngine, Object[] keyValues, String embeddedColumn, Object value)
executionEngine
- the GraphDatabaseService
used to run the querykeyValues
- the columns representing the identifier in the entity owning the embeddedembeddedColumn
- the column on the embedded node (dot-separated properties)value
- the new value for the propertyCopyright © 2010-2017 Red Hat, Inc., Emmanuel Bernard and various contributors. All Rights Reserved.