|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.runtime.transaction.NakedObjectTransactionAbstract
org.nakedobjects.remoting.client.transaction.ClientSideTransaction
public class ClientSideTransaction
Encapsulates a transaction occurring on the client, where each of the actions (add, remove and change) are then passed to the server as an atomic unit.
Each action is captured as an ClientTransactionEvent object.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.nakedobjects.runtime.transaction.NakedObjectTransaction |
|---|
NakedObjectTransaction.State |
| Constructor Summary | |
|---|---|
ClientSideTransaction(NakedObjectTransactionManager transactionManager,
MessageBroker messageBroker,
UpdateNotifier updateNotifier)
|
|
| Method Summary | |
|---|---|
void |
addDestroyObject(NakedObject object)
Add an event to transaction for the destruction of the specified object. |
void |
addMakePersistent(NakedObject object)
Add an event to transaction for the adding of the specified object. |
void |
addObjectChanged(NakedObject object)
Add an event to transaction for the updating of the specified object. |
void |
doAbort()
TODO: need to restore the state of all involved objects |
protected void |
doFlush()
|
ClientTransactionEvent[] |
getEntries()
Return all the events for the transaction. |
boolean |
isEmpty()
Returns true if there are no entries, hence the transaction is not used. |
| Methods inherited from class org.nakedobjects.runtime.transaction.NakedObjectTransactionAbstract |
|---|
abort, appendTo, commit, flush, getAbortCause, getMessageBroker, getState, getTransactionManager, getUpdateNotifier, setAbortCause, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClientSideTransaction(NakedObjectTransactionManager transactionManager,
MessageBroker messageBroker,
UpdateNotifier updateNotifier)
| Method Detail |
|---|
public void addMakePersistent(NakedObject object)
public void addObjectChanged(NakedObject object)
public void addDestroyObject(NakedObject object)
public ClientTransactionEvent[] getEntries()
public boolean isEmpty()
protected void doFlush()
doFlush in class NakedObjectTransactionAbstractpublic void doAbort()
doAbort in class NakedObjectTransactionAbstract
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||