public static interface Capability.ExecuteQueries
| Modifier and Type | Method and Description |
|---|---|
long |
countEntitiesOfType(Class<?> entity)
Counts all the node entities of the specified type.
|
<T> Iterable<T> |
query(Class<T> objectType,
String cypher,
Map<String,?> parameters)
Given a cypher statement this method will return a collection of domain objects that is hydrated to
the default level or a collection of scalars (depending on the parametrized type).
|
Result |
query(String cypher,
Map<String,?> parameters)
Given a cypher statement this method will return a Result object containing a collection of Map's which represent Neo4j
objects as properties, along with query statistics if applicable.
|
Result |
query(String cypher,
Map<String,?> parameters,
boolean readOnly)
Given a cypher statement this method will return a Result object containing a collection of Map's which represent Neo4j
objects as properties, along with query statistics if applicable.
|
<T> T |
queryForObject(Class<T> objectType,
String cypher,
Map<String,?> parameters)
Given a cypher statement this method will return a domain object that is hydrated to the
default level or a scalar (depending on the parametrized type).
|
<T> T queryForObject(Class<T> objectType, String cypher, Map<String,?> parameters)
T - A domain object or scalar.objectType - The type that should be returned from the query.cypher - The parametrizable cypher to execute.parameters - Any scalar parameters to attach to the cypher.RuntimeException - If more than one object is found.<T> Iterable<T> query(Class<T> objectType, String cypher, Map<String,?> parameters)
T - A domain object or scalar.objectType - The type that should be returned from the query.cypher - The parametrizable cypher to execute.parameters - Any parameters to attach to the cypher.Result query(String cypher, Map<String,?> parameters)
cypher - The parametrisable cypher to execute.parameters - Any parameters to attach to the cypher.Result containing an Iterable map representing query results and QueryStatistics if applicable.Result query(String cypher, Map<String,?> parameters, boolean readOnly)
Copyright © 2016 Neo Technology, Inc.. All rights reserved.