public class ExecuteQueriesDelegate extends Object implements Capability.ExecuteQueries
| Constructor and Description |
|---|
ExecuteQueriesDelegate(Neo4jSession neo4jSession) |
| 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> type,
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> type,
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).
|
public ExecuteQueriesDelegate(Neo4jSession neo4jSession)
public <T> T queryForObject(Class<T> type, String cypher, Map<String,?> parameters)
Capability.ExecuteQueriesqueryForObject in interface Capability.ExecuteQueriesT - A domain object or scalar.type - The type that should be returned from the query.cypher - The parametrizable cypher to execute.parameters - Any scalar parameters to attach to the cypher.public Result query(String cypher, Map<String,?> parameters)
Capability.ExecuteQueriesquery in interface Capability.ExecuteQueriescypher - 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.public <T> Iterable<T> query(Class<T> type, String cypher, Map<String,?> parameters)
Capability.ExecuteQueriesquery in interface Capability.ExecuteQueriesT - A domain object or scalar.type - The type that should be returned from the query.cypher - The parametrizable cypher to execute.parameters - Any parameters to attach to the cypher.public Result query(String cypher, Map<String,?> parameters, boolean readOnly)
Capability.ExecuteQueriesquery in interface Capability.ExecuteQueriescypher - The parametrisable cypher to execute.parameters - Any parameters to attach to the cypher.readOnly - true if the query is readOnly, false otherwiseResult of Iterables with each entry representing a neo4j object's properties.public long countEntitiesOfType(Class<?> entity)
Capability.ExecuteQueriescountEntitiesOfType in interface Capability.ExecuteQueriesentity - The Class denoting the type of entity to countCopyright © 2016 Neo Technology, Inc.. All rights reserved.