org.neo4j.examples.socnet
Class PersonRepository
java.lang.Object
org.neo4j.examples.socnet.PersonRepository
public class PersonRepository
- extends Object
Constructor Summary |
PersonRepository(org.neo4j.graphdb.GraphDatabaseService graphDb,
org.neo4j.graphdb.index.Index<org.neo4j.graphdb.Node> index)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersonRepository
public PersonRepository(org.neo4j.graphdb.GraphDatabaseService graphDb,
org.neo4j.graphdb.index.Index<org.neo4j.graphdb.Node> index)
createPerson
public Person createPerson(String name)
throws Exception
- Throws:
Exception
getPersonByName
public Person getPersonByName(String name)
deletePerson
public void deletePerson(Person person)
getAllPersons
public Iterable<Person> getAllPersons()
Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.