org.granite.messaging.amf.persistence
Class AMFPersistentCollectionSnapshot

java.lang.Object
  extended by org.granite.messaging.amf.persistence.AMFPersistentCollectionSnapshot
All Implemented Interfaces:
Externalizable, Serializable, PersistentCollectionSnapshot

public class AMFPersistentCollectionSnapshot
extends Object
implements PersistentCollectionSnapshot

Author:
Franck WOLFF
See Also:
Serialized Form

Field Summary
protected  String detachedState
           
protected  boolean dirty
           
protected  Object[] elements
           
protected  boolean initialized
           
 
Constructor Summary
AMFPersistentCollectionSnapshot(boolean sorted, String detachedState)
           
AMFPersistentCollectionSnapshot(boolean initialized, String detachedState, boolean dirty, Collection<?> collection)
           
AMFPersistentCollectionSnapshot(boolean initialized, String detachedState, boolean dirty, Map<?,?> collection)
           
AMFPersistentCollectionSnapshot(String detachedState)
           
 
Method Summary
 String getDetachedState()
           
<T> Collection<T>
getElementsAsCollection()
           
<K,V> Map<K,V>
getElementsAsMap()
           
 boolean isDirty()
           
 boolean isInitialized()
           
 boolean isSorted()
           
<T> Comparator<T>
newComparator(ObjectInput in)
           
 void readCoreData(ObjectInput in)
           
 void readExternal(ObjectInput in)
           
 void readInitializationData(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialized

protected boolean initialized

detachedState

protected String detachedState

dirty

protected boolean dirty

elements

protected Object[] elements
Constructor Detail

AMFPersistentCollectionSnapshot

public AMFPersistentCollectionSnapshot(String detachedState)

AMFPersistentCollectionSnapshot

public AMFPersistentCollectionSnapshot(boolean sorted,
                                       String detachedState)

AMFPersistentCollectionSnapshot

public AMFPersistentCollectionSnapshot(boolean initialized,
                                       String detachedState,
                                       boolean dirty,
                                       Collection<?> collection)

AMFPersistentCollectionSnapshot

public AMFPersistentCollectionSnapshot(boolean initialized,
                                       String detachedState,
                                       boolean dirty,
                                       Map<?,?> collection)
Method Detail

isInitialized

public boolean isInitialized()
Specified by:
isInitialized in interface PersistentCollectionSnapshot

getDetachedState

public String getDetachedState()
Specified by:
getDetachedState in interface PersistentCollectionSnapshot

isDirty

public boolean isDirty()
Specified by:
isDirty in interface PersistentCollectionSnapshot

isSorted

public boolean isSorted()
Specified by:
isSorted in interface PersistentCollectionSnapshot

newComparator

public <T> Comparator<T> newComparator(ObjectInput in)
Specified by:
newComparator in interface PersistentCollectionSnapshot

getElementsAsCollection

public <T> Collection<T> getElementsAsCollection()
Specified by:
getElementsAsCollection in interface PersistentCollectionSnapshot

getElementsAsMap

public <K,V> Map<K,V> getElementsAsMap()
Specified by:
getElementsAsMap in interface PersistentCollectionSnapshot

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

readInitializationData

public void readInitializationData(ObjectInput in)
                            throws IOException,
                                   ClassNotFoundException
Specified by:
readInitializationData in interface PersistentCollectionSnapshot
Throws:
IOException
ClassNotFoundException

readCoreData

public void readCoreData(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readCoreData in interface PersistentCollectionSnapshot
Throws:
IOException
ClassNotFoundException