From 6f558c7e68893d8e741aba95ba8aed81c7ea65e9 Mon Sep 17 00:00:00 2001 From: Michael Hunger Date: Mon, 9 Jan 2012 15:27:56 +0100 Subject: [PATCH] DATAGRAPH-164 Added methods to determine stored java type to neo4j-template and crud-repository --- .../reference/programming-model/template.xml | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/docbkx/reference/programming-model/template.xml b/src/docbkx/reference/programming-model/template.xml index 9bad4579b..12b6dd2e4 100644 --- a/src/docbkx/reference/programming-model/template.xml +++ b/src/docbkx/reference/programming-model/template.xml @@ -7,7 +7,7 @@ The Neo4jTemplate offers the convenient API of Spring templates for the Neo4j graph database. The Spring Data Neo4j Object Graph mapping builds upon the core functionality of the - template to persist objects to the graph and load them in a variety of ways. + template to persist objects to the graph and load them in a variety of ways. The template handles the active mapping mode () transparently. @@ -17,6 +17,24 @@ +
+ Core-Operations + + Neo4jTemplate provides access to some of the methods of the Neo4j-Core-API directly. So accessing + nodes and relationships (getReferenceNode, getNode, getRelationship, getRelationshipBetween), + creating nodes and relationships (createNode, createNodeAs, createRelationshipBetween) + and deleting them (delete, deleteRelationshipBetween) are supported. It also provides access to + the underlying GraphDatabase via getGraphDatabase. + +
+
+ Entity-Persistence + + Neo4jTemplate allows to save,find(One/All),countdelete + and projectTo entities. It provides the stored type information via getStoredJavaType + and can fetch lazy-loaded entities or load them alltogether. + +
Result @@ -26,7 +44,7 @@ ResultConverter<FROM,TO> which takes care of custom conversions. By default most query methods can already handle conversions from and to: Paths, Nodes, Relationship and GraphEntities as well as conversions backed by registered ConversionServices. A converted Result<FROM> is an - Iterable<TO>. Results can be limited to a single value using the + Iterable<TO>. Results can be limited to a single value using the result.single() or result.singleOrNull() methods. It also offers support for a pure callback function using a Handler<T>.