public class TransactionalNull extends Object implements Transactional
Constructor and Description |
---|
TransactionalNull() |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Abort a transaction - finish the transaction and undo any changes (if a "write" transaction)
|
void |
begin(ReadWrite readWrite)
Start either a READ or WRITE transaction
|
void |
commit()
Commit a transaction - finish the transaction and make any changes permanent (if a "write" transaction)
|
void |
end()
Finish the transaction - if a write transaction and commit() has not been called, then abort
|
boolean |
isInTransaction()
Say whether a transaction is active
|
public void begin(ReadWrite readWrite)
Transactional
begin
in interface Transactional
public void commit()
Transactional
commit
in interface Transactional
public void abort()
Transactional
abort
in interface Transactional
public boolean isInTransaction()
Transactional
isInTransaction
in interface Transactional
public void end()
Transactional
end
in interface Transactional
Licenced under the Apache License, Version 2.0