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>
 
Nested classes/interfaces inherited from interface org.granite.client.persistence.collection.PersistentCollection
PersistentCollection.ChangeListener, PersistentCollection.InitializationCallback, PersistentCollection.InitializationListener
 
Constructor Summary
PersistentMap()
           
PersistentMap(boolean initialized)
           
PersistentMap(Map<K,V> collection)
           
PersistentMap(Map<K,V> collection, boolean clone)
           
 
Method Summary
 PersistentMap<K,V> clone(boolean uninitialize)
           
protected  PersistentCollectionSnapshot createSnapshot(Object io, boolean forReading)
           
 void doInitialize()
           
protected  void updateFromSnapshot(ObjectInput in, 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
addListener, addListener, checkInitializedRead, checkInitializedWrite, clearDirty, dirty, getClassLoader, getCollection, getDetachedState, getLoader, init, initialize, initializing, isDirty, readExternal, removeListener, removeListener, setLoader, toString, uninitialize, wasInitialized, withInitialized, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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(boolean initialized)

PersistentMap

public PersistentMap(Map<K,V> collection)

PersistentMap

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

doInitialize

public void doInitialize()
Specified by:
doInitialize in class AbstractPersistentCollection<Map<K,V>>

createSnapshot

protected PersistentCollectionSnapshot createSnapshot(Object io,
                                                      boolean forReading)
Specified by:
createSnapshot in class AbstractPersistentCollection<Map<K,V>>

updateFromSnapshot

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

clone

public PersistentMap<K,V> clone(boolean uninitialize)
Specified by:
clone in interface PersistentCollection
Overrides:
clone in class AbstractPersistentCollection<Map<K,V>>