public class Neo4jClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<Neo4jClient> |
__TYPE_ARG |
static String |
DEFAULT_POOL_NAME
The default shared client name.
|
| Constructor and Description |
|---|
Neo4jClient(Neo4jClient delegate) |
Neo4jClient(Object delegate) |
| Modifier and Type | Method and Description |
|---|---|
Neo4jClient |
begin(Handler<AsyncResult<Neo4jTransaction>> resultHandler)
Begins a new transaction
|
Neo4jClient |
bulkWrite(List<Query> queries,
Handler<AsyncResult<SummaryCounters>> resultHandler)
Executes a list of queries in one transaction
|
void |
close()
Closes this client
|
static Neo4jClient |
createNonShared(Vertx vertx,
Neo4jClientOptions config)
Creates a Neo4j client which maintains its own driver session.
|
static Neo4jClient |
createShared(Vertx vertx,
Neo4jClientOptions config)
Same as
createShared(io.vertx.rxjava.core.Vertx, io.reactiverse.neo4j.options.Neo4jClientOptions) but with a default data source name |
static Neo4jClient |
createShared(Vertx vertx,
Neo4jClientOptions config,
String dataSourceName)
Creates a Neo4j client that shares its driver session with any other client having the same name.
|
Neo4jClient |
delete(String query,
Handler<AsyncResult<List<Record>>> resultHandler)
Executes and returns deleted results
|
Neo4jClient |
delete(String query,
Value parameters,
Handler<AsyncResult<List<Record>>> resultHandler)
Executes and returns deleted results
|
boolean |
equals(Object o) |
Neo4jClient |
execute(String query,
Handler<AsyncResult<ResultSummary>> resultHandler)
Executes a write transaction
|
Neo4jClient |
execute(String query,
Value parameters,
Handler<AsyncResult<ResultSummary>> resultHandler)
Executes a write transaction
|
Neo4jClient |
find(String query,
Handler<AsyncResult<List<Record>>> resultHandler)
Finds a list of records
|
Neo4jClient |
find(String query,
Value parameters,
Handler<AsyncResult<List<Record>>> resultHandler)
Finds a list of records
|
Neo4jClient |
findOne(String query,
Handler<AsyncResult<Record>> resultHandler)
Finds exactly one record
|
Neo4jClient |
findOne(String query,
Value parameters,
Handler<AsyncResult<Record>> resultHandler)
Finds exactly one record
|
Neo4jClient |
getDelegate() |
int |
hashCode() |
static Neo4jClient |
newInstance(Neo4jClient arg) |
Neo4jClient |
queryStream(String query,
Handler<AsyncResult<Neo4jRecordStream>> recordStreamHandler)
Opens a new stream of records
|
Neo4jClient |
queryStream(String query,
Value parameters,
Handler<AsyncResult<Neo4jRecordStream>> recordStreamHandler)
Opens a new stream of records
|
Single<Neo4jTransaction> |
rxBegin()
Begins a new transaction
|
Single<SummaryCounters> |
rxBulkWrite(List<Query> queries)
Executes a list of queries in one transaction
|
Single<List<Record>> |
rxDelete(String query)
Executes and returns deleted results
|
Single<List<Record>> |
rxDelete(String query,
Value parameters)
Executes and returns deleted results
|
Single<ResultSummary> |
rxExecute(String query)
Executes a write transaction
|
Single<ResultSummary> |
rxExecute(String query,
Value parameters)
Executes a write transaction
|
Single<List<Record>> |
rxFind(String query)
Finds a list of records
|
Single<List<Record>> |
rxFind(String query,
Value parameters)
Finds a list of records
|
Single<Record> |
rxFindOne(String query)
Finds exactly one record
|
Single<Record> |
rxFindOne(String query,
Value parameters)
Finds exactly one record
|
Single<Neo4jRecordStream> |
rxQueryStream(String query)
Opens a new stream of records
|
Single<Neo4jRecordStream> |
rxQueryStream(String query,
Value parameters)
Opens a new stream of records
|
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<Neo4jClient> __TYPE_ARG
public static final String DEFAULT_POOL_NAME
public Neo4jClient(Neo4jClient delegate)
public Neo4jClient(Object delegate)
public Neo4jClient getDelegate()
public static Neo4jClient createShared(Vertx vertx, Neo4jClientOptions config)
createShared(io.vertx.rxjava.core.Vertx, io.reactiverse.neo4j.options.Neo4jClientOptions) but with a default data source namevertx - the Vert.x instanceconfig - the driver configurationpublic static Neo4jClient createShared(Vertx vertx, Neo4jClientOptions config, String dataSourceName)
vertx - the Vert.x instanceconfig - the driver configurationdataSourceName - the data source namepublic static Neo4jClient createNonShared(Vertx vertx, Neo4jClientOptions config)
It is not recommended to create several non shared clients in an application.
vertx - the Vert.x instanceconfig - the driver configurationpublic Neo4jClient begin(Handler<AsyncResult<Neo4jTransaction>> resultHandler)
resultHandler - the handler to be called when the transaction has begunpublic Single<Neo4jTransaction> rxBegin()
public Neo4jClient queryStream(String query, Handler<AsyncResult<Neo4jRecordStream>> recordStreamHandler)
query - the cypher queryrecordStreamHandler - the handler to be called when the stream of records is availablepublic Single<Neo4jRecordStream> rxQueryStream(String query)
query - the cypher querypublic void close()
public Neo4jClient execute(String query, Handler<AsyncResult<ResultSummary>> resultHandler)
query - the cypher queryresultHandler - the handler to be called when the query has completedpublic Single<ResultSummary> rxExecute(String query)
query - the cypher querypublic Neo4jClient execute(String query, Value parameters, Handler<AsyncResult<ResultSummary>> resultHandler)
query - the cypher queryparameters - the cypher parametersresultHandler - the handler to be called when the query has completedpublic Single<ResultSummary> rxExecute(String query, Value parameters)
query - the cypher queryparameters - the cypher parameterspublic Neo4jClient delete(String query, Handler<AsyncResult<List<Record>>> resultHandler)
query - the cypher queryresultHandler - the handler to be called when the query has completedpublic Single<List<Record>> rxDelete(String query)
query - the cypher querypublic Neo4jClient delete(String query, Value parameters, Handler<AsyncResult<List<Record>>> resultHandler)
query - the cypher queryparameters - the cypher parametersresultHandler - the handler to be called when the query has completedpublic Single<List<Record>> rxDelete(String query, Value parameters)
query - the cypher queryparameters - the cypher parameterspublic Neo4jClient findOne(String query, Handler<AsyncResult<Record>> resultHandler)
query - the cypher queryresultHandler - the handler to be called when the query has completedpublic Single<Record> rxFindOne(String query)
query - the cypher querypublic Neo4jClient findOne(String query, Value parameters, Handler<AsyncResult<Record>> resultHandler)
query - the cypher queryparameters - the cypher parametersresultHandler - the handler to be called when the query has completedpublic Single<Record> rxFindOne(String query, Value parameters)
query - the cypher queryparameters - the cypher parameterspublic Neo4jClient find(String query, Handler<AsyncResult<List<Record>>> resultHandler)
query - the cypher queryresultHandler - the handler to be called when the query has completedpublic Single<List<Record>> rxFind(String query)
query - the cypher querypublic Neo4jClient find(String query, Value parameters, Handler<AsyncResult<List<Record>>> resultHandler)
query - the cypher queryparameters - the cypher parametersresultHandler - the handler to be called when the query has completedpublic Single<List<Record>> rxFind(String query, Value parameters)
query - the cypher queryparameters - the cypher parameterspublic Neo4jClient bulkWrite(List<Query> queries, Handler<AsyncResult<SummaryCounters>> resultHandler)
queries - the list of queries to executeresultHandler - the handler to be called when the query has completedpublic Single<SummaryCounters> rxBulkWrite(List<Query> queries)
queries - the list of queries to executepublic Neo4jClient queryStream(String query, Value parameters, Handler<AsyncResult<Neo4jRecordStream>> recordStreamHandler)
query - the cypher queryparameters - the cypher parametersrecordStreamHandler - the handler to be called when the stream of records is availablepublic Single<Neo4jRecordStream> rxQueryStream(String query, Value parameters)
query - the cypher queryparameters - the cypher parameterspublic static Neo4jClient newInstance(Neo4jClient arg)
Copyright © 2020 Eclipse. All rights reserved.