public interface GraphDatabase
| Modifier and Type | Method and Description |
|---|---|
org.neo4j.graphdb.Transaction |
beginTx() |
<T extends org.neo4j.graphdb.PropertyContainer> |
createIndex(Class<T> type,
String indexName,
IndexType indexType)
creates a index
|
org.neo4j.graphdb.Node |
createNode(Map<String,Object> props,
Collection<String> labels)
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
|
Collection<String> |
getAllLabelNames() |
<T extends org.neo4j.graphdb.PropertyContainer> |
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,
Collection<String> labels)
creates the node uniquely or returns an existing node with the same index-key-value combination.
|
org.neo4j.graphdb.Relationship |
getOrCreateRelationship(org.neo4j.graphdb.Node start,
org.neo4j.graphdb.Node end,
org.neo4j.graphdb.RelationshipType type,
org.neo4j.graphdb.Direction direction,
Map<String,Object> props) |
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.Relationship |
getRelationshipById(long id) |
TransactionManager |
getTransactionManager() |
org.neo4j.graphdb.Node |
merge(String labelName,
String key,
Object value,
Map<String,Object> properties,
Collection<String> labels)
creates the node uniquely or returns an existing node with the same label-key-value combination.
|
CypherQueryEngine |
queryEngine()
returns a query engine for the provided type (Cypher) which is initialized with the default result converter
|
CypherQueryEngine |
queryEngine(ResultConverter resultConverter)
returns a query engine for the provided type (Cypher) 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) |
void |
shutdown() |
boolean |
transactionIsRunning() |
org.neo4j.graphdb.traversal.TraversalDescription |
traversalDescription() |
org.neo4j.graphdb.Node getNodeById(long id)
id - node idorg.neo4j.graphdb.NotFoundExceptionorg.neo4j.graphdb.Node createNode(Map<String,Object> props, Collection<String> labels)
org.neo4j.graphdb.Node merge(String labelName, String key, Object value, Map<String,Object> properties, Collection<String> labels)
org.neo4j.graphdb.Node getOrCreateNode(String indexName, String key, Object value, Map<String,Object> properties, Collection<String> labels)
org.neo4j.graphdb.Relationship getRelationshipById(long id)
id - relationship idorg.neo4j.graphdb.NotFoundExceptionorg.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 nullIndexIllegalArgumentException - 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.classindexType - SIMPLE, FULLTEXT or POINT declaring the requested index-typeIndexorg.neo4j.graphdb.traversal.TraversalDescription traversalDescription()
CypherQueryEngine queryEngine()
CypherQueryEngine queryEngine(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()
TransactionManager getTransactionManager()
org.neo4j.graphdb.Transaction beginTx()
void shutdown()
Collection<String> getAllLabelNames()
Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.