public final class Neo4jGraphManager<T extends Neo4j2Graph> extends BlueprintsGraphManager<T>
| Modifier and Type | Field and Description | 
|---|---|
| static String | BASE_LABEL | 
graph, METADATA_PREFIX| Constructor and Description | 
|---|
| Neo4jGraphManager(com.tinkerpop.frames.FramedGraph<T> graph) | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | createIndicesAndConstraints(org.neo4j.graphdb.GraphDatabaseService graph)Create | 
| com.tinkerpop.blueprints.Vertex | createVertex(String id,
            EntityClass type,
            Map<String,?> data)Create a vertex with the given id, type, and data. | 
| boolean | exists(String id)Check if a node with the given ID exists or not. | 
| com.tinkerpop.blueprints.Vertex | getVertex(String id)Get a node with the given ID. | 
| com.tinkerpop.blueprints.CloseableIterable<com.tinkerpop.blueprints.Vertex> | getVertices(EntityClass type)Get a CloseableIterable of vertices with the given entity class. | 
| com.tinkerpop.blueprints.CloseableIterable<com.tinkerpop.blueprints.Vertex> | getVertices(String key,
           Object value,
           EntityClass type)Get a CloseableIterable of vertices with the given type, and the given
 key/value property. | 
| void | initialize() | 
| com.tinkerpop.blueprints.Vertex | setLabels(com.tinkerpop.blueprints.Vertex vertex)Set labels on a Neo4j-based vertex. | 
| com.tinkerpop.blueprints.Vertex | updateVertex(String id,
            EntityClass type,
            Map<String,?> data)Create a vertex with the given id, type, and data. | 
deleteVertex, deleteVertex, getEntities, getEntities, getEntity, getEntity, getEntityClass, getEntityClass, getGraph, getId, getProperties, getType, getVertices, renameVertex, setPropertypublic static final String BASE_LABEL
public Neo4jGraphManager(com.tinkerpop.frames.FramedGraph<T> graph)
public boolean exists(String id)
GraphManagerexists in interface GraphManagerexists in class BlueprintsGraphManager<T extends Neo4j2Graph>id - A string idpublic com.tinkerpop.blueprints.Vertex getVertex(String id) throws ItemNotFound
GraphManagergetVertex in interface GraphManagergetVertex in class BlueprintsGraphManager<T extends Neo4j2Graph>id - The vertex's string IDItemNotFoundpublic com.tinkerpop.blueprints.CloseableIterable<com.tinkerpop.blueprints.Vertex> getVertices(String key, Object value, EntityClass type)
GraphManagergetVertices in interface GraphManagergetVertices in class BlueprintsGraphManager<T extends Neo4j2Graph>key - the property keyvalue - property valuetype - the entity typepublic com.tinkerpop.blueprints.Vertex createVertex(String id, EntityClass type, Map<String,?> data) throws IntegrityError
GraphManagercreateVertex in interface GraphManagercreateVertex in class BlueprintsGraphManager<T extends Neo4j2Graph>id - The vertex's string IDtype - The entity typedata - The data mapIntegrityError - if an item with the given id already existspublic com.tinkerpop.blueprints.Vertex updateVertex(String id, EntityClass type, Map<String,?> data) throws ItemNotFound
GraphManagerupdateVertex in interface GraphManagerupdateVertex in class BlueprintsGraphManager<T extends Neo4j2Graph>id - The vertex's string IDtype - The entity typedata - The data mapItemNotFoundpublic void initialize()
initialize in interface GraphManagerinitialize in class BlueprintsGraphManager<T extends Neo4j2Graph>public com.tinkerpop.blueprints.CloseableIterable<com.tinkerpop.blueprints.Vertex> getVertices(EntityClass type)
GraphManagergetVertices in interface GraphManagergetVertices in class BlueprintsGraphManager<T extends Neo4j2Graph>type - The entity typepublic com.tinkerpop.blueprints.Vertex setLabels(com.tinkerpop.blueprints.Vertex vertex)
vertex - the vertexpublic static void createIndicesAndConstraints(org.neo4j.graphdb.GraphDatabaseService graph)
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.