org.objectweb.speedo.genclass.map
Class MapImpl

java.lang.Object
  extended by org.objectweb.speedo.genclass.GenClass
      extended by org.objectweb.speedo.genclass.map.MapImpl
All Implemented Interfaces:
java.io.Serializable, java.util.Map, org.objectweb.jorm.api.PBinding, org.objectweb.jorm.api.PBindingCtrl, org.objectweb.jorm.util.api.Loggable, CacheEntry, FixableCacheEntry, ReplaceableCacheEntry, SpeedoGenClassCoherence, SpeedoGenClassPO, SpeedoGenClassSerializable, PersistentObjectItf

public class MapImpl
extends GenClass
implements java.util.Map

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class org.objectweb.speedo.genclass.GenClass
age, encodedPName, fix, gcid, linkedField, listeners, logger, mapperName, pbinding, pnameHints, projectName, ptype, speedoIsActive
 
Fields inherited from interface org.objectweb.jorm.api.PBinding
ACTION_BIND, ACTION_EXIST, ACTION_EXPORT, ACTION_READ, ACTION_UNBIND, ACTION_UNEXPORT, ACTION_WRITE, LIFECYCLE_ACTIVEFORIO, LIFECYCLE_DELTOWRITE, LIFECYCLE_ERROR, LIFECYCLE_NEWTOWRITE, LIFECYCLE_NOTBOUND
 
Constructor Summary
MapImpl()
          Instantiates a new map.
 
Method Summary
 void clear()
           
 boolean containsKey(java.lang.Object key)
           
 boolean containsValue(java.lang.Object value)
           
 java.lang.Object createGenClass()
           
 java.util.Set entrySet()
           
 java.lang.Object get(java.lang.Object key)
           
 boolean isEmpty()
           
 java.util.Set keySet()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 void putAll(java.util.Map t)
           
 java.lang.Object remove(java.lang.Object key)
           
 void setGCValue(java.lang.Object o)
           
 int size()
           
 StateItf speedoCreateState()
           
 StateItf speedoGetReferenceState()
           
 void speedoSetReferenceState(StateItf refAcc)
          Assignes the reference accessor to the PersistentObjectItf The Reference accessor is used for non persistent instance, as cache value and for pessimistic policy.
 java.util.Collection values()
           
 
Methods inherited from class org.objectweb.speedo.genclass.GenClass
bind, elementIsReference, exist, export, export, fireSpeedoElementAdded, fireSpeedoElementRemoved, fixCe, getCeAge, getCeFixCount, getCeIdentifier, getCeObject, getDataIdentifier, getDataIdentifiers, getLogger, getLoggerFactory, getPClassMapping, getPName, getSpeedoAccessors, getStatus, init, init, read, read, read, removeSpeedoAccessor, setCeAge, setElements, setLogger, setLoggerFactory, setPName, setStatus, speedoAdd, speedoAdd, speedoAddGenClassListener, speedoCopyState, speedoGetEncodedPName, speedoGetGenClassId, speedoGetHome, speedoGetPBinding, speedoGetPNameHints, speedoGetPOManager, speedoGetPType, speedoGetState, speedoIsActive, speedoIsActive, speedoIsPersistent, speedoRemove, speedoSetEncodedPName, speedoSetGcId, speedoSetLinkedField, speedoSetPBinding, speedoSetPNameHints, speedoSetPType, unbind, unexport, unfixCe, write
 
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
equals, hashCode
 

Constructor Detail

MapImpl

public MapImpl()
Instantiates a new map.

Method Detail

size

public int size()
Specified by:
size in interface java.util.Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Map

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map

containsValue

public boolean containsValue(java.lang.Object value)
Specified by:
containsValue in interface java.util.Map

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map

remove

public java.lang.Object remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map

putAll

public void putAll(java.util.Map t)
Specified by:
putAll in interface java.util.Map

clear

public void clear()
Specified by:
clear in interface java.util.Map
Specified by:
clear in interface SpeedoGenClassPO

keySet

public java.util.Set keySet()
Specified by:
keySet in interface java.util.Map

values

public java.util.Collection values()
Specified by:
values in interface java.util.Map

entrySet

public java.util.Set entrySet()
Specified by:
entrySet in interface java.util.Map

setGCValue

public void setGCValue(java.lang.Object o)

speedoGetReferenceState

public StateItf speedoGetReferenceState()
Specified by:
speedoGetReferenceState in interface PersistentObjectItf
Specified by:
speedoGetReferenceState in class GenClass
Returns:
the reference accessor of the PersistentObjectItf instance. It can be * null. The Reference accessor is used for non persistent instance, as cache value and for pessimistic policy.

speedoSetReferenceState

public void speedoSetReferenceState(StateItf refAcc)
Description copied from interface: PersistentObjectItf
Assignes the reference accessor to the PersistentObjectItf The Reference accessor is used for non persistent instance, as cache value and for pessimistic policy.

Specified by:
speedoSetReferenceState in interface PersistentObjectItf
Specified by:
speedoSetReferenceState in class GenClass
Parameters:
refAcc - the new reference accessor

speedoCreateState

public StateItf speedoCreateState()
Specified by:
speedoCreateState in interface PersistentObjectItf
Specified by:
speedoCreateState in class GenClass
Returns:
a new StateItf instance.

createGenClass

public java.lang.Object createGenClass()
Specified by:
createGenClass in interface SpeedoGenClassPO