public class Neo4jTransaction extends Object implements AutoCloseable
| Constructor and Description |
|---|
Neo4jTransaction(org.neo4j.driver.v1.Session session)
Default constructor with a session.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
failure()
Rollback and close the current transaction.
|
String |
getBookmarkId()
Get the last bookmarkId.
|
Stream<org.neo4j.driver.v1.Record> |
run(String query)
Execute the given cypher query without parameters.
|
Stream<org.neo4j.driver.v1.Record> |
run(String query,
org.neo4j.driver.v1.Value params)
Execute the given cypher query with its parameters.
|
void |
success()
Commit and close the current transaction.
|
public Neo4jTransaction(org.neo4j.driver.v1.Session session)
public Stream<org.neo4j.driver.v1.Record> run(String query, org.neo4j.driver.v1.Value params)
query - Cypher queryparams - Query's parameterspublic Stream<org.neo4j.driver.v1.Record> run(String query)
query - Cypher querypublic void success()
public void failure()
public String getBookmarkId()
failure() or success() before.public void close()
close in interface AutoCloseableCopyright © 2017. All rights reserved.