public interface KernelTransaction
KernelTransaction is used both for building the statement logic (once per db), as well as
being a transaction.| Modifier and Type | Method and Description |
|---|---|
DataStatement |
acquireDataStatement() |
ReadStatement |
acquireReadStatement() |
SchemaStatement |
acquireSchemaStatement() |
void |
commit()
Commit this transaction, this will make the changes in this context visible to other
transactions.
|
<RESULT,FAILURE extends KernelException> |
execute(MicroTransaction<RESULT,FAILURE> transaction) |
void |
rollback()
Roll back this transaction, undoing any changes that have been made.
|
ReadStatement acquireReadStatement()
DataStatement acquireDataStatement() throws InvalidTransactionTypeException
InvalidTransactionTypeExceptionSchemaStatement acquireSchemaStatement() throws InvalidTransactionTypeException
InvalidTransactionTypeExceptionvoid commit()
throws TransactionFailureException
TransactionFailureExceptionvoid rollback()
throws TransactionFailureException
TransactionFailureException<RESULT,FAILURE extends KernelException> RESULT execute(MicroTransaction<RESULT,FAILURE> transaction) throws FAILURE extends KernelException
FAILURE extends KernelExceptionCopyright © 2002–2013 The Neo4j Graph Database Project. All rights reserved.