|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.caleigo.core.ActionQueue
The ActionQueue class containes an ordred queue of perform requests with ITransactionEntityAction objects and connected relevant action data.
Nested Class Summary | |
protected static class |
ActionQueue.ActionRequest
Queue item that groups an ITransactionEntityAction with execution data together as an quable item. |
protected class |
ActionQueue.DirtyOnlyRequest
Queue item that groups an ITransactionEntityAction with execution data together as an quable item. |
Constructor Summary | |
ActionQueue()
Creates a new instance of ActionQueue |
Method Summary | |
void |
addAction(ITransactionEntityAction entityAction,
IDataBundle dataBundle)
Adds the provided action request to the queue with the provided data bundle. |
void |
addAction(ITransactionEntityAction entityAction,
IEntity entity)
Adds the provided action request to the queue with the provided entity. |
void |
clear()
Clears all queued actions from the called ActionQueue. |
void |
clear(ITransactionEntityAction action)
Clears all queued actions request of the provided action from the called ActionQueue. |
void |
clear(IUnaryEntityAction action,
IEntity entity)
Clears all queued IUnaryEntityAction requests of the specified type targeted on the provided entity. |
ITransactionEntityAction |
getAction(int index)
Returns the indexed action object from the queue. |
int |
getActionCount()
Returns the number of queued entity actions. |
IDataBundle |
getActionData(int index)
Returns the indexed action data object from the queue. |
java.util.Iterator |
getActions()
Access method that returns an iterator for all contained action objects in the called ActionQueue. |
boolean |
isEmpty()
Returns the true if no action request are queued. |
void |
prepareTransaction(IDataTransaction transaction)
Action method tha will add all queued actions on the transaction in the order they were added to the called ActionQueue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActionQueue()
Method Detail |
public void prepareTransaction(IDataTransaction transaction)
public void addAction(ITransactionEntityAction entityAction, IDataBundle dataBundle)
public void addAction(ITransactionEntityAction entityAction, IEntity entity)
public void clear()
public void clear(ITransactionEntityAction action)
public void clear(IUnaryEntityAction action, IEntity entity)
public boolean isEmpty()
public int getActionCount()
public ITransactionEntityAction getAction(int index)
public IDataBundle getActionData(int index)
public java.util.Iterator getActions()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |