From fd9a0d45e40c901dab512001cf1f84454cc62f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rickard=20=C3=96berg?= Date: Fri, 16 Dec 2011 15:58:56 +0800 Subject: [PATCH] Fixed DATAGRAPH-148 docs --- .../programming-model/repositories.xml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/docbkx/reference/programming-model/repositories.xml b/src/docbkx/reference/programming-model/repositories.xml index 3b7f837a5..1ae4ffeb0 100644 --- a/src/docbkx/reference/programming-model/repositories.xml +++ b/src/docbkx/reference/programming-model/repositories.xml @@ -54,9 +54,9 @@ Iterate over all nodes of a node entity type - Iterable<T> findAll() + EndResult<T> findAll() (supported in future versions: - Iterable<T> findAll(Sort) and + EndResult<T> findAll(Sort) and Page<T> findAll(Pageable)) @@ -91,7 +91,7 @@ Iterate over all indexed entity instances with a certain field value - Iterable<T> findAllByPropertyValue(key, value) + EndResult<T> findAllByPropertyValue(key, value) Get a single entity instance with a certain field value @@ -99,11 +99,11 @@ Iterate over all indexed entity instances with field values in a certain numerical range (inclusive) - Iterable<T> findAllByRange(key, from, to) + EndResult<T> findAllByRange(key, from, to) Iterate over all indexed entity instances with field values matching the given fulltext string or QueryContext query - Iterable<T> findAllByQuery(key, queryOrQueryContext) + EndResult<T> findAllByQuery(key, queryOrQueryContext) @@ -212,11 +212,11 @@ Long numberOfPeople = graphRepository.count(); Person mark = graphRepository.findByPropertyValue("name", "mark"); -Iterable devs = graphRepository.findAllByProperyValue("occupation", "developer"); +EndResult devs = graphRepository.findAllByProperyValue("occupation", "developer"); -Iterable middleAgedPeople = graphRepository.findAllByRange("age", 20, 40); +EndResult middleAgedPeople = graphRepository.findAllByRange("age", 20, 40); -Iterable aTeam = graphRepository.findAllByQuery("name", "A*"); +EndResult aTeam = graphRepository.findAllByQuery("name", "A*"); Iterable davesFriends = graphRepository.findAllByTraversal(dave, Traversal.description().pruneAfterDepth(1) @@ -268,9 +268,9 @@ Person michael = personRepository.save(new Person("Michael",36)); Person dave=personRepository.findOne(123); -Iterable devs = personRepository.findAllByPropertyValue("occupation","developer"); +EndResult devs = personRepository.findAllByPropertyValue("occupation","developer"); -Iterable aTeam = graphRepository.findAllByQuery( "name","A*"); +EndResult aTeam = graphRepository.findAllByQuery( "name","A*"); Iterable friends = personRepository.findFriends(dave); ]]>