public interface Transactor
| Modifier and Type | Method and Description |
|---|---|
void |
abort(Transaction t)
Aborts this Transaction, reverting the state
|
boolean |
canCommit(Transaction t)
Returns true of this Transaction can be committed on this object
|
List<PropertyChangeEvent> |
commit(Transaction t)
Commit this Transaction.
|
boolean |
join(Transaction t)
Enter a new Transaction, this method should return false if this object
is already enlisted in another transaction, or cannot be enlisted with
the passed transaction.
|
boolean join(Transaction t)
t - the transaction to enlist withboolean canCommit(Transaction t) throws TransactionFailure
t - is the transaction to commit, should be the same as the
one passed during the join(Transaction t) call.TransactionFailure - if the changes cannot be validatedList<PropertyChangeEvent> commit(Transaction t) throws TransactionFailure
t - the transaction commiting.TransactionFailure - if the transaction commit failedvoid abort(Transaction t)
t - the aborting transactionCopyright © 2009-2017 Oracle Corporation. All Rights Reserved.