public class SpringCypherRestGraphDatabase extends CypherRestGraphDatabase implements GraphDatabase
| Constructor and Description |
|---|
SpringCypherRestGraphDatabase(RestAPI api) |
SpringCypherRestGraphDatabase(String uri) |
SpringCypherRestGraphDatabase(String uri,
String user,
String password) |
| Modifier and Type | Method and Description |
|---|---|
<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
|
<T extends org.neo4j.graphdb.PropertyContainer> |
getIndex(String indexName) |
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.
|
TransactionManager |
getTransactionManager() |
org.neo4j.graphdb.Node |
merge(String labelName,
String key,
Object value,
Map<String,Object> nodeProperties,
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
|
org.neo4j.graphdb.event.KernelEventHandler |
registerKernelEventHandler(org.neo4j.graphdb.event.KernelEventHandler kernelEventHandler) |
<T> org.neo4j.graphdb.event.TransactionEventHandler<T> |
registerTransactionEventHandler(org.neo4j.graphdb.event.TransactionEventHandler<T> tTransactionEventHandler) |
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.event.KernelEventHandler |
unregisterKernelEventHandler(org.neo4j.graphdb.event.KernelEventHandler kernelEventHandler) |
<T> org.neo4j.graphdb.event.TransactionEventHandler<T> |
unregisterTransactionEventHandler(org.neo4j.graphdb.event.TransactionEventHandler<T> tTransactionEventHandler) |
beginTx, bidirectionalTraversalDescription, createNode, createNode, execute, execute, findNode, findNodes, findNodes, findNodesByLabelAndProperty, getAllLabelNames, getAllNodes, getDependencyResolver, getNodeById, getRelationshipById, getRelationshipTypes, getRestAPI, getStoreDir, getTxManager, index, isAvailable, schema, shutdown, toLabelNames, traversalDescriptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeginTx, getAllLabelNames, getNodeById, getRelationshipById, shutdown, traversalDescriptionpublic SpringCypherRestGraphDatabase(RestAPI api)
public SpringCypherRestGraphDatabase(String uri)
public org.neo4j.graphdb.Node createNode(Map<String,Object> props, Collection<String> labels)
GraphDatabasecreateNode in interface GraphDatabasepublic org.neo4j.graphdb.Node getOrCreateNode(String indexName, String key, Object value, Map<String,Object> properties, Collection<String> labels)
GraphDatabasegetOrCreateNode in interface GraphDatabasepublic org.neo4j.graphdb.Node merge(String labelName, String key, Object value, Map<String,Object> nodeProperties, Collection<String> labels)
GraphDatabasemerge in interface GraphDatabasepublic 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)
GraphDatabasegetOrCreateRelationship in interface GraphDatabasepublic org.neo4j.graphdb.Relationship createRelationship(org.neo4j.graphdb.Node startNode,
org.neo4j.graphdb.Node endNode,
org.neo4j.graphdb.RelationshipType type,
Map<String,Object> properties)
GraphDatabasecreateRelationship in interface GraphDatabasepublic <T extends org.neo4j.graphdb.PropertyContainer> org.neo4j.graphdb.index.Index<T> getIndex(String indexName)
getIndex in interface GraphDatabaseindexName - existing index name, not nullIndexpublic <T extends org.neo4j.graphdb.PropertyContainer> org.neo4j.graphdb.index.Index<T> createIndex(Class<T> type, String indexName, IndexType indexType)
GraphDatabasecreateIndex in interface GraphDatabasetype - type of index requested - either Node.class or Relationship.classindexType - SIMPLE, FULLTEXT or POINT declaring the requested index-typeIndexpublic CypherQueryEngine queryEngine(ResultConverter resultConverter)
GraphDatabasequeryEngine in interface GraphDatabasepublic CypherQueryEngine queryEngine()
GraphDatabasequeryEngine in interface GraphDatabasepublic void setConversionService(ConversionService conversionService)
setConversionService in interface GraphDatabaseconversionService - the conversion service to be used for the default result converter of this databasepublic boolean transactionIsRunning()
transactionIsRunning in interface GraphDatabasepublic TransactionManager getTransactionManager()
getTransactionManager in interface GraphDatabasepublic 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)
getOrCreateRelationship in interface GraphDatabasepublic void remove(org.neo4j.graphdb.Node node)
GraphDatabaseremove in interface GraphDatabasepublic void remove(org.neo4j.graphdb.Relationship relationship)
GraphDatabaseremove in interface GraphDatabasepublic void setResultConverter(ResultConverter resultConverter)
setResultConverter in interface GraphDatabaseresultConverter - the default result converter to be used with this databasepublic <T> org.neo4j.graphdb.event.TransactionEventHandler<T> registerTransactionEventHandler(org.neo4j.graphdb.event.TransactionEventHandler<T> tTransactionEventHandler)
registerTransactionEventHandler in interface org.neo4j.graphdb.GraphDatabaseServicepublic <T> org.neo4j.graphdb.event.TransactionEventHandler<T> unregisterTransactionEventHandler(org.neo4j.graphdb.event.TransactionEventHandler<T> tTransactionEventHandler)
unregisterTransactionEventHandler in interface org.neo4j.graphdb.GraphDatabaseServicepublic org.neo4j.graphdb.event.KernelEventHandler registerKernelEventHandler(org.neo4j.graphdb.event.KernelEventHandler kernelEventHandler)
registerKernelEventHandler in interface org.neo4j.graphdb.GraphDatabaseServicepublic org.neo4j.graphdb.event.KernelEventHandler unregisterKernelEventHandler(org.neo4j.graphdb.event.KernelEventHandler kernelEventHandler)
unregisterKernelEventHandler in interface org.neo4j.graphdb.GraphDatabaseServiceCopyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.