Package science.aist.neo4j
Interface Neo4jQueryRepository
-
- All Known Implementing Classes:
AbstractNeo4JNodeRepositoyImpl
,NamespaceAwareReflectiveNeo4JNodeRepositoryImpl
,ReflectiveNeo4JNodeRepositoryImpl
public interface Neo4jQueryRepository
Repository Interface for executing queries on a neo4j database
- Since:
- 1.0
- Author:
- Andreas Pointner, Christoph Praschl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
query(String query, org.neo4j.driver.Value parameters, Class<T> clazz)
Method for executing a query with a single result in a own transaction<T> Stream<T>
queryAll(String query, org.neo4j.driver.Value parameters, Class<T> clazz)
Method for executing a query with multiple results in a own transaction
-
-
-
Method Detail
-
query
<T> T query(String query, org.neo4j.driver.Value parameters, Class<T> clazz)
Method for executing a query with a single result in a own transaction- Type Parameters:
T
- Result type- Parameters:
query
- The query textparameters
- The query parametersclazz
- The result clazz type- Returns:
- Single query result
-
queryAll
<T> Stream<T> queryAll(String query, org.neo4j.driver.Value parameters, Class<T> clazz)
Method for executing a query with multiple results in a own transaction- Type Parameters:
T
- Result type- Parameters:
query
- The query textparameters
- The query parametersclazz
- The result clazz type- Returns:
- Stream of results
-
-