|
Spring Data Neo4j | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphDatabase
Method Summary | ||
---|---|---|
|
createIndex(Class<T> type,
String indexName,
IndexType indexType)
creates a index |
|
org.neo4j.graphdb.Node |
createNode(Map<String,Object> props)
creates the node and initializes its properties |
|
org.neo4j.graphdb.Relationship |
createRelationship(org.neo4j.graphdb.Node startNode,
org.neo4j.graphdb.Node endNode,
org.neo4j.graphdb.RelationshipType type,
Map<String,Object> properties)
creates the relationship between the startNode, endNode with the given type which will be populated with the provided properties |
|
|
getIndex(String indexName)
|
|
org.neo4j.graphdb.Node |
getNodeById(long id)
|
|
org.neo4j.graphdb.Node |
getOrCreateNode(String indexName,
String key,
Object value,
Map<String,Object> properties)
creates the node uniquely or returns an existing node with the same index-key-value combination. |
|
org.neo4j.graphdb.Relationship |
getOrCreateRelationship(String indexName,
String key,
Object value,
org.neo4j.graphdb.Node startNode,
org.neo4j.graphdb.Node endNode,
String type,
Map<String,Object> properties)
Creates the relationship uniquely, uses the given index,key,value to achieve that. |
|
org.neo4j.graphdb.Node |
getReferenceNode()
|
|
org.neo4j.graphdb.Relationship |
getRelationshipById(long id)
|
|
|
queryEngineFor(QueryType type)
returns a query engine for the provided type (Cypher or Gremlin) which is initialized with the default result converter |
|
|
queryEngineFor(QueryType type,
ResultConverter resultConverter)
returns a query engine for the provided type (Cypher or Gremlin) which is initialized with the provided result converter |
|
void |
remove(org.neo4j.graphdb.Node node)
deletes the Node and its index entries |
|
void |
remove(org.neo4j.graphdb.Relationship relationship)
deletes the relationship and its index entries |
|
void |
setConversionService(ConversionService conversionService)
|
|
void |
setResultConverter(ResultConverter resultConverter)
|
|
boolean |
transactionIsRunning()
|
|
org.neo4j.graphdb.traversal.TraversalDescription |
traversalDescription()
|
Method Detail |
---|
org.neo4j.graphdb.Node getReferenceNode()
org.neo4j.graphdb.Node getNodeById(long id)
id
- node id
org.neo4j.graphdb.NotFoundException
org.neo4j.graphdb.Node createNode(Map<String,Object> props)
org.neo4j.graphdb.Node getOrCreateNode(String indexName, String key, Object value, Map<String,Object> properties)
org.neo4j.graphdb.Relationship getRelationshipById(long id)
id
- relationship id
org.neo4j.graphdb.NotFoundException
org.neo4j.graphdb.Relationship createRelationship(org.neo4j.graphdb.Node startNode, org.neo4j.graphdb.Node endNode, org.neo4j.graphdb.RelationshipType type, Map<String,Object> properties)
org.neo4j.graphdb.Relationship getOrCreateRelationship(String indexName, String key, Object value, org.neo4j.graphdb.Node startNode, org.neo4j.graphdb.Node endNode, String type, Map<String,Object> properties)
void remove(org.neo4j.graphdb.Node node)
void remove(org.neo4j.graphdb.Relationship relationship)
<T extends org.neo4j.graphdb.PropertyContainer> org.neo4j.graphdb.index.Index<T> getIndex(String indexName)
indexName
- existing index name, not null
Index
IllegalArgumentException
- if the index doesn't exist<T extends org.neo4j.graphdb.PropertyContainer> org.neo4j.graphdb.index.Index<T> createIndex(Class<T> type, String indexName, IndexType indexType)
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
Index
org.neo4j.graphdb.traversal.TraversalDescription traversalDescription()
<T> QueryEngine<T> queryEngineFor(QueryType type)
<T> QueryEngine<T> queryEngineFor(QueryType type, ResultConverter resultConverter)
void setConversionService(ConversionService conversionService)
conversionService
- the conversion service to be used for the default result converter of this databasevoid setResultConverter(ResultConverter resultConverter)
resultConverter
- the default result converter to be used with this databaseboolean transactionIsRunning()
|
Spring Data Neo4j | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |