org.spicefactory.pimento.io
Class CollectionChangeSet

java.lang.Object
  extended by org.spicefactory.pimento.io.CollectionChangeSet
All Implemented Interfaces:
Externalizable

public class CollectionChangeSet
extends Object
implements Externalizable

Represents an update to a persistent collection. Can only be used for unordered collections since this change set does not preserve any ordering information.

Author:
Jens Halm

Constructor Summary
CollectionChangeSet()
           
 
Method Summary
 List<EntitySnapshot> getAddedElements()
          Returns all snapshots that represent entities that were added to the collection.
 List<ProxyEntitySnapshot> getRemovedElements()
          Returns all snapshots that represent entities that were removed from the collection.
 void readExternal(DataInput input)
          Restores the content of this object from the DataInput instance.
 void writeExternal(DataOutput output)
          Saves the content of this object to the DataOutput instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionChangeSet

public CollectionChangeSet()
Method Detail

getAddedElements

public List<EntitySnapshot> getAddedElements()
Returns all snapshots that represent entities that were added to the collection.

Returns:
all snapshots that represent entities that were added to the collection

getRemovedElements

public List<ProxyEntitySnapshot> getRemovedElements()
Returns all snapshots that represent entities that were removed from the collection.

Returns:
all snapshots that represent entities that were removed from the collection

readExternal

public void readExternal(DataInput input)
Description copied from interface: Externalizable
Restores the content of this object from the DataInput instance. Values must be read in the same sequence as they were written on the client side.

Specified by:
readExternal in interface Externalizable
Parameters:
input - the AMF3 data to read from

writeExternal

public void writeExternal(DataOutput output)
Description copied from interface: Externalizable
Saves the content of this object to the DataOutput instance.

Specified by:
writeExternal in interface Externalizable
Parameters:
output - the output to write to