public class Neo4jDatabaseService extends Object implements org.structr.api.DatabaseService, org.structr.api.graph.GraphProperties
Modifier and Type | Field and Description |
---|---|
static String |
NEO4J_PAGE_CACHE_MEMORY |
static String |
NEO4J_SHELL_ENABLED |
static String |
NEO4J_SHELL_PORT |
static String |
NODE_CACHE_SIZE |
static String |
RELATIONSHIP_CACHE_SIZE |
Constructor and Description |
---|
Neo4jDatabaseService() |
Modifier and Type | Method and Description |
---|---|
org.structr.api.Transaction |
beginTx() |
org.structr.api.graph.Node |
createNode() |
org.structr.api.NativeResult |
execute(String nativeQuery) |
org.structr.api.NativeResult |
execute(String nativeQuery,
Map<String,Object> parameters) |
<T> T |
forName(Class<T> type,
String name) |
Iterable<org.structr.api.graph.Node> |
getAllNodes() |
Iterable<org.structr.api.graph.Relationship> |
getAllRelationships() |
org.structr.api.graph.GraphProperties |
getGlobalProperties() |
org.neo4j.graphdb.GraphDatabaseService |
getGraphDb() |
org.structr.api.graph.Node |
getNodeById(long id) |
NodeWrapper |
getNodeFromCache(long id) |
org.structr.api.graph.Label |
getOrCreateLabel(String name) |
org.structr.api.graph.RelationshipType |
getOrCreateRelationshipType(String name) |
Object |
getProperty(String name) |
org.structr.api.graph.Relationship |
getRelationshipById(long id) |
RelationshipWrapper |
getRelationshipFromCache(long id) |
void |
initialize(Properties config) |
void |
invalidateCache() |
org.structr.api.index.IndexManager<org.structr.api.graph.Node> |
nodeIndexer() |
org.structr.api.index.IndexManager<org.structr.api.graph.Relationship> |
relationshipIndexer() |
void |
removeNodeFromCache(long id) |
void |
removeRelationshipFromCache(long id) |
void |
setProperty(String name,
Object value) |
void |
shutdown() |
void |
storeNodeInCache(NodeWrapper node) |
void |
storeRelationshipInCache(RelationshipWrapper relationship) |
public static final String RELATIONSHIP_CACHE_SIZE
public static final String NODE_CACHE_SIZE
public static final String NEO4J_SHELL_ENABLED
public static final String NEO4J_SHELL_PORT
public static final String NEO4J_PAGE_CACHE_MEMORY
public void initialize(Properties config)
initialize
in interface org.structr.api.DatabaseService
public void shutdown()
shutdown
in interface org.structr.api.DatabaseService
public org.structr.api.Transaction beginTx()
beginTx
in interface org.structr.api.DatabaseService
public org.structr.api.graph.Node createNode()
createNode
in interface org.structr.api.DatabaseService
public org.structr.api.graph.Node getNodeById(long id)
getNodeById
in interface org.structr.api.DatabaseService
public org.structr.api.graph.Relationship getRelationshipById(long id)
getRelationshipById
in interface org.structr.api.DatabaseService
public Iterable<org.structr.api.graph.Node> getAllNodes()
getAllNodes
in interface org.structr.api.DatabaseService
public Iterable<org.structr.api.graph.Relationship> getAllRelationships()
getAllRelationships
in interface org.structr.api.DatabaseService
public org.structr.api.graph.GraphProperties getGlobalProperties()
getGlobalProperties
in interface org.structr.api.DatabaseService
public org.structr.api.index.IndexManager<org.structr.api.graph.Node> nodeIndexer()
nodeIndexer
in interface org.structr.api.DatabaseService
public org.structr.api.index.IndexManager<org.structr.api.graph.Relationship> relationshipIndexer()
relationshipIndexer
in interface org.structr.api.DatabaseService
public org.structr.api.NativeResult execute(String nativeQuery)
execute
in interface org.structr.api.DatabaseService
public org.structr.api.NativeResult execute(String nativeQuery, Map<String,Object> parameters)
execute
in interface org.structr.api.DatabaseService
public <T> T forName(Class<T> type, String name)
forName
in interface org.structr.api.DatabaseService
public org.structr.api.graph.Label getOrCreateLabel(String name)
public org.structr.api.graph.RelationshipType getOrCreateRelationshipType(String name)
public org.neo4j.graphdb.GraphDatabaseService getGraphDb()
public NodeWrapper getNodeFromCache(long id)
public void storeNodeInCache(NodeWrapper node)
public void removeNodeFromCache(long id)
public RelationshipWrapper getRelationshipFromCache(long id)
public void storeRelationshipInCache(RelationshipWrapper relationship)
public void removeRelationshipFromCache(long id)
public void setProperty(String name, Object value)
setProperty
in interface org.structr.api.graph.GraphProperties
public Object getProperty(String name)
getProperty
in interface org.structr.api.graph.GraphProperties
public void invalidateCache()
invalidateCache
in interface org.structr.api.DatabaseService
Copyright © 2016. All rights reserved.