|
Spring Data Neo4j | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.neo4j.rest.graphdb.RestGraphDatabase org.springframework.data.neo4j.rest.SpringRestGraphDatabase
public class SpringRestGraphDatabase
Constructor Summary | |
---|---|
SpringRestGraphDatabase(org.neo4j.rest.graphdb.RestAPI api)
|
|
SpringRestGraphDatabase(String uri)
|
|
SpringRestGraphDatabase(String uri,
String user,
String password)
|
Method Summary | ||
---|---|---|
org.neo4j.graphdb.Transaction |
beginTx()
|
|
|
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 |
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. |
|
TransactionManager |
getTransactionManager()
|
|
TransactionManager |
getTxManager()
|
|
|
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()
|
Methods inherited from class org.neo4j.rest.graphdb.RestGraphDatabase |
---|
createNode, getAllNodes, getNodeById, getReferenceNode, getRelationshipById, getRelationshipTypes, getRestAPI, getStoreDir, index, shutdown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.data.neo4j.core.GraphDatabase |
---|
getNodeById, getReferenceNode, getRelationshipById |
Constructor Detail |
---|
public SpringRestGraphDatabase(org.neo4j.rest.graphdb.RestAPI api)
public SpringRestGraphDatabase(String uri)
public SpringRestGraphDatabase(String uri, String user, String password)
Method Detail |
---|
public org.neo4j.graphdb.Node createNode(Map<String,Object> props)
GraphDatabase
createNode
in interface GraphDatabase
public org.neo4j.graphdb.Transaction beginTx()
beginTx
in interface org.neo4j.graphdb.GraphDatabaseService
beginTx
in interface GraphDatabase
beginTx
in class org.neo4j.rest.graphdb.RestGraphDatabase
public TransactionManager getTxManager()
getTxManager
in interface org.neo4j.kernel.GraphDatabaseAPI
getTxManager
in class org.neo4j.rest.graphdb.RestGraphDatabase
public org.neo4j.graphdb.Node getOrCreateNode(String indexName, String key, Object value, Map<String,Object> properties)
GraphDatabase
getOrCreateNode
in interface GraphDatabase
public 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)
GraphDatabase
getOrCreateRelationship
in interface GraphDatabase
public org.neo4j.graphdb.Relationship createRelationship(org.neo4j.graphdb.Node startNode, org.neo4j.graphdb.Node endNode, org.neo4j.graphdb.RelationshipType type, Map<String,Object> properties)
GraphDatabase
createRelationship
in interface GraphDatabase
public <T extends org.neo4j.graphdb.PropertyContainer> org.neo4j.graphdb.index.Index<T> getIndex(String indexName)
getIndex
in interface GraphDatabase
indexName
- existing index name, not null
Index
public <T extends org.neo4j.graphdb.PropertyContainer> org.neo4j.graphdb.index.Index<T> createIndex(Class<T> type, String indexName, IndexType indexType)
GraphDatabase
createIndex
in interface GraphDatabase
type
- type of index requested - either Node.class or Relationship.classindexType
- SIMPLE, FULLTEXT or POINT declaring the requested index-type
Index
public org.neo4j.graphdb.traversal.TraversalDescription traversalDescription()
traversalDescription
in interface GraphDatabase
public <T> QueryEngine<T> queryEngineFor(QueryType type, ResultConverter resultConverter)
GraphDatabase
queryEngineFor
in interface GraphDatabase
public <T> QueryEngine<T> queryEngineFor(QueryType type)
GraphDatabase
queryEngineFor
in interface GraphDatabase
public void setConversionService(ConversionService conversionService)
setConversionService
in interface GraphDatabase
conversionService
- the conversion service to be used for the default result converter of this databasepublic boolean transactionIsRunning()
transactionIsRunning
in interface GraphDatabase
public TransactionManager getTransactionManager()
getTransactionManager
in interface GraphDatabase
public void remove(org.neo4j.graphdb.Node node)
GraphDatabase
remove
in interface GraphDatabase
public void remove(org.neo4j.graphdb.Relationship relationship)
GraphDatabase
remove
in interface GraphDatabase
public void setResultConverter(ResultConverter resultConverter)
setResultConverter
in interface GraphDatabase
resultConverter
- the default result converter to be used with this database
|
Spring Data Neo4j | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |