ehsbe CommonsTM
Version 1.1.0rc3

com.ehsbe.commons.util
Class CrudEventList

java.lang.Object
  extended by com.ehsbe.commons.util.CrudEventList
All Implemented Interfaces:
Serializable

public class CrudEventList
extends Object
implements Serializable

Class to be used to construct/reassemble object modifications on a server to its clients.

Version:
$Revision: 432 $
Author:
Jens Elkner
See Also:
Serialized Form

Constructor Summary
CrudEventList()
           
 
Method Summary
 void add(CrudEvent<?> e)
          Add a CRUD event to the list of notifications.
 ArrayList<CrudEvent<?>> getEvents()
          Get all CRUD events.
 int getSize()
          Get the number of events in this list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrudEventList

public CrudEventList()
Method Detail

add

public void add(CrudEvent<?> e)
Add a CRUD event to the list of notifications.

Parameters:
e - the crud event to send. Ignored if null.

getEvents

public ArrayList<CrudEvent<?>> getEvents()
Get all CRUD events.

Returns:
a possible empty list.

getSize

public int getSize()
Get the number of events in this list.

Returns:
a positive number

ehsbe CommonsTM
Version 1.1.0rc3

Copyright ©2005-2009 EHSBE, Walther-Rathenau-Str. 58, 39104 Magdeburg, Sachsen-Anhalt, Germany. All Rights Reserved.