public interface Transaction extends AutoCloseable
| Modifier and Type | Interface and Description |
|---|---|
static class |
Transaction.Status |
static class |
Transaction.Type |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCommit()
If this transaction can be committed
|
void |
close()
close this transaction.
|
void |
commit()
commit a transaction that has pending writes
|
boolean |
isReadOnly()
Obtains the read-only status of a transaction.
|
void |
rollback()
rollback a transaction that has pending writes
|
Transaction.Status |
status()
return the status of the current transaction
|
Transaction.Type |
type()
Returns type of the transaction - READ_ONLY / READ_WRITE
The value corresponds to type returned by
isReadOnly() |
void rollback()
void commit()
boolean canCommit()
Transaction.Status status()
boolean isReadOnly()
Transaction.Type type()
isReadOnly()void close()
close in interface AutoCloseableCopyright © 2015–2023 Neo Technology, Inc.. All rights reserved.