|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TransactionContext
Represents a transaction of changes to the underlying graph.
Actual changes are made in the statements
created from this transaction context. Changes made within a transaction
are visible to all operations within it.
Usage of a transaction context:
statement and use it#success() if all statements were successful#finish() to commit (if #success() has been called)
or roll back (if #success() hasn't or #failure() has been called
| Method Summary | |
|---|---|
void |
commit()
Commit this transaction, this will make the changes in this context visible to other transactions. |
StatementContext |
newStatementContext()
Creates a new statement which operations can be performed on. |
void |
prepare()
Writes the changes this transaction wants to perform down to disk. |
void |
rollback()
Roll back this transaction, undoing any changes that have been made. |
| Method Detail |
|---|
StatementContext newStatementContext()
statement which operations can be performed on.
When done it must be closed.
StatementContext to do operations on.void prepare()
commit(), but
it is a necessary thing if you are implementing two-phase commits.
void commit()
prepare() before calling this method, the transaction
is implicitly prepared.
void rollback()
|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||