org.granite.client.persistence.collection
Class PersistentMap<K,V>

java.lang.Object
  extended by org.granite.client.persistence.collection.AbstractPersistentCollection<C>
      extended by org.granite.client.persistence.collection.AbstractPersistentMapCollection<K,V,Map<K,V>>
          extended by org.granite.client.persistence.collection.PersistentMap<K,V>
All Implemented Interfaces:
Externalizable, Serializable, Map<K,V>, PersistentCollection

public class PersistentMap<K,V>
extends AbstractPersistentMapCollection<K,V,Map<K,V>>
implements Map<K,V>

Author:
Franck WOLFF
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
PersistentMap()
           
PersistentMap(Map<K,V> collection)
           
PersistentMap(Map<K,V> collection, boolean clone)
           
 
Method Summary
protected  org.granite.messaging.persistence.PersistentCollectionSnapshot createSnapshot(boolean forReading)
           
protected  void updateFromSnapshot(ObjectInput in, org.granite.messaging.persistence.PersistentCollectionSnapshot snapshot)
           
 
Methods inherited from class org.granite.client.persistence.collection.AbstractPersistentMapCollection
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, put, putAll, remove, size, values
 
Methods inherited from class org.granite.client.persistence.collection.AbstractPersistentCollection
checkInitialized, clearDirty, dirty, getClassLoader, getCollection, init, isDirty, readExternal, wasInitialized, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

PersistentMap

public PersistentMap()

PersistentMap

public PersistentMap(Map<K,V> collection)

PersistentMap

public PersistentMap(Map<K,V> collection,
                     boolean clone)
Method Detail

createSnapshot

protected org.granite.messaging.persistence.PersistentCollectionSnapshot createSnapshot(boolean forReading)
Specified by:
createSnapshot in class AbstractPersistentCollection<Map<K,V>>

updateFromSnapshot

protected void updateFromSnapshot(ObjectInput in,
                                  org.granite.messaging.persistence.PersistentCollectionSnapshot snapshot)
Specified by:
updateFromSnapshot in class AbstractPersistentCollection<Map<K,V>>