org.springframework.data.neo4j.core
Interface GraphDatabase
- All Known Implementing Classes:
- DelegatingGraphDatabase, SpringRestGraphDatabase
public interface GraphDatabase
getReferenceNode
org.neo4j.graphdb.Node getReferenceNode()
- Returns:
- the reference node of the underlying graph database
getNodeById
org.neo4j.graphdb.Node getNodeById(long id)
- Parameters:
id
- node id
- Returns:
- the requested node of the underlying graph database
- Throws:
org.neo4j.graphdb.NotFoundException
createNode
org.neo4j.graphdb.Node createNode(Map<String,Object> props)
getRelationshipById
org.neo4j.graphdb.Relationship getRelationshipById(long id)
- Parameters:
id
- relationship id
- Returns:
- the requested relationship of the underlying graph database
- Throws:
org.neo4j.graphdb.NotFoundException
createRelationship
org.neo4j.graphdb.Relationship createRelationship(org.neo4j.graphdb.Node startNode,
org.neo4j.graphdb.Node endNode,
org.neo4j.graphdb.RelationshipType type,
Map<String,Object> props)
getIndex
<T extends org.neo4j.graphdb.PropertyContainer> org.neo4j.graphdb.index.Index<T> getIndex(String indexName)
- Parameters:
indexName
- existing index name, not null
- Returns:
- existing index
Index
- Throws:
IllegalArgumentException
- if the index doesn't exist
createIndex
<T extends org.neo4j.graphdb.PropertyContainer> org.neo4j.graphdb.index.Index<T> createIndex(Class<T> type,
String indexName,
IndexType indexType)
- creates a index
- Parameters:
type
- type of index requested - either Node.class or Relationship.classindexName,
- not nullfullText
- true if a fulltext queryable index is needed, false for exact match
- Returns:
- node index
Index
traversalDescription
org.neo4j.graphdb.traversal.TraversalDescription traversalDescription()
- Returns:
- a TraversalDescription as starting point for defining a traversal
queryEngineFor
<T> QueryEngine<T> queryEngineFor(QueryType type)
setConversionService
void setConversionService(ConversionService conversionService)
queryEngineFor
<T> QueryEngine<T> queryEngineFor(QueryType type,
ResultConverter resultConverter)
transactionIsRunning
boolean transactionIsRunning()
remove
void remove(org.neo4j.graphdb.Node node)
remove
void remove(org.neo4j.graphdb.Relationship relationship)
setResultConverter
void setResultConverter(ResultConverter resultConverter)
Copyright © 2011 SpringSource. All Rights Reserved.