|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ManageableResourceManager
Needs to be implemented by all resource managers that want to take part in a
combined transaction. This interface is not meant for
user interaction.
| Method Summary | |
|---|---|
boolean |
commitCanFail()
Checks whether a tried commit could possibly fail because of logical reasons. |
void |
forgetTransaction()
Instructs the resource manager to forget about the current transaction. |
boolean |
isReadOnly()
Checks if there had been any write operations on this resource manager since the start of the transaction. |
boolean |
isRollbackOnly()
Checks whether this resource manager allows a rollback as the only valid outcome. |
void |
joinTransaction(LockManager<Object,Object> lm)
Lets this resource manager join a transaction that is protected by a common lock manager. |
boolean |
prepareTransaction()
Checks whether this resource manager is willing and able to commit its part of the complex transaction. |
| Methods inherited from interface org.apache.commons.transaction.TransactionalResourceManager |
|---|
commitTransaction, rollbackTransaction, startTransaction |
| Method Detail |
|---|
boolean prepareTransaction()
true if this resource manager can commit its part
of the transactionvoid forgetTransaction()
void joinTransaction(LockManager<Object,Object> lm)
lm - the common lock maangerboolean isRollbackOnly()
true if this resource manager can only roll backboolean isReadOnly()
TransactionalResourceManager.commitTransaction() or
TransactionalResourceManager.rollbackTransaction(), but only
forgetTransaction().
true if there had been read operations onlyboolean commitCanFail()
true if a commit could fail
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||