public class Neo4jClient extends Object
Constructor and Description |
---|
Neo4jClient() |
@PostConstruct public void init()
@PreDestroy public void shutdown()
public fj.data.Either<List<List<GraphElement>>,Neo4jOperationStatus> execute(BatchBuilder builder)
builder
- public fj.data.Either<List<List<GraphElement>>,Neo4jOperationStatus> executeGet(RecursiveFilter filter)
public Neo4jOperationStatus createElement(GraphElement element)
element
- ip
- user
- password
- public fj.data.Either<GraphElement,Neo4jOperationStatus> createSingleElement(GraphElement element)
public fj.data.Either<List<GraphElement>,Neo4jOperationStatus> getByFilter(GraphElementTypeEnum type, String label, MatchFilter filter)
type
- label
- filter
- ip
- user
- password
- public Neo4jOperationStatus updateElement(GraphElementTypeEnum type, String label, UpdateFilter toUpdate)
type
- label
- toMatch
- toUpdate
- ip
- user
- password
- public fj.data.Either<Map<String,List<String>>,Neo4jOperationStatus> getIndexes(String label)
label
- the name of the labelip
- user
- password
- public Neo4jOperationStatus createIndex(String label, List<String> propertyNames)
public Neo4jOperationStatus createUniquenessConstraints(String label, List<String> propertyNames)
public Neo4jOperationStatus deleteElement(GraphElementTypeEnum type, String label, MatchFilter filter)
Copyright © 2017. All rights reserved.