iitb.con.ds
Class ActionBufferList<T>

java.lang.Object
  extended by iitb.con.ds.ActionBufferList<T>

public class ActionBufferList<T>
extends java.lang.Object

ActionBufferList is state buffer for performing actions to the database. The buffer holds the objects along with its action information.


Nested Class Summary
static class ActionBufferList.Action
           
 
Constructor Summary
ActionBufferList()
          Initializes the action buffers
 
Method Summary
 boolean add(java.lang.Object o, int size, ActionBufferList.Action action)
          Adds the object to the respective action buffer
 void clear()
          Clears the action buffers and resets the size to zero
 java.util.List<T> getAddList()
          Returns the add action list
 java.util.List<T> getMetaUpdateList()
          Returns the meta update action list
 java.util.List<T> getRemoveList()
          Returns the update action list
 java.util.List<T> getUpdateList()
          Returns the update action list
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionBufferList

public ActionBufferList()
Initializes the action buffers

Method Detail

add

public boolean add(java.lang.Object o,
                   int size,
                   ActionBufferList.Action action)
Adds the object to the respective action buffer

Parameters:
o - object to be added to buffer
size - object size
action - action on the object
Returns:
true on success

clear

public void clear()
Clears the action buffers and resets the size to zero


getAddList

public java.util.List<T> getAddList()
Returns the add action list

Returns:
objects with add action as List

getMetaUpdateList

public java.util.List<T> getMetaUpdateList()
Returns the meta update action list

Returns:
objects with update action as List

getRemoveList

public java.util.List<T> getRemoveList()
Returns the update action list

Returns:
objects with update action as List

getUpdateList

public java.util.List<T> getUpdateList()
Returns the update action list

Returns:
objects with update action as List