|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.orchestra.pvm.internal.tx.StandardTransaction
public class StandardTransaction
simple 2 phase commit transaction. no logging or recovery. non thread safe (which is ok).
| Field Summary | |
|---|---|
protected List<StandardResource> |
resources
|
protected org.ow2.orchestra.pvm.internal.tx.StandardTransaction.State |
state
|
protected List<StandardSynchronization> |
synchronizations
|
| Constructor Summary | |
|---|---|
StandardTransaction()
|
|
| Method Summary | |
|---|---|
void |
afterCompletion()
|
void |
beforeCompletion()
|
void |
begin()
|
void |
commit()
implements simplest two phase commit. |
void |
complete()
|
void |
enlistResource(StandardResource standardResource)
|
boolean |
isRollbackOnly()
is this transaction marked for rollback only ? |
void |
registerSynchronization(Synchronization synchronization)
register a transaction listener. |
void |
rollback()
|
void |
setRollbackOnly()
marks a transaction for rollback only. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final List<StandardResource> resources
protected final List<StandardSynchronization> synchronizations
protected org.ow2.orchestra.pvm.internal.tx.StandardTransaction.State state
| Constructor Detail |
|---|
public StandardTransaction()
| Method Detail |
|---|
public void begin()
public void complete()
public void setRollbackOnly()
Transaction
setRollbackOnly in interface Transactionpublic boolean isRollbackOnly()
Transaction
isRollbackOnly in interface Transactionpublic void commit()
public void rollback()
public void registerSynchronization(Synchronization synchronization)
Transaction
registerSynchronization in interface Transactionpublic void afterCompletion()
public void beforeCompletion()
public void enlistResource(StandardResource standardResource)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||