org.objectweb.speedo.genclass.map
Class HashMapImpl
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap
org.objectweb.speedo.genclass.map.HashMapImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map, org.objectweb.jorm.api.PBinding, CacheEntry, FixableCacheEntry, ReplaceableCacheEntry, SpeedoGenClassCoherence, SpeedoGenClassPO, PersistentObjectItf
public abstract class HashMapImpl
- extends java.util.HashMap
- implements SpeedoGenClassPO
- Author:
- S.Chassande-Barrioz
- See Also:
- Serialized Form
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 |
Methods inherited from class java.util.HashMap |
clone |
Methods inherited from class java.util.AbstractMap |
equals, hashCode |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.objectweb.speedo.genclass.api.SpeedoGenClassPO |
fireSpeedoElementAdded, fireSpeedoElementRemoved, init, setElements, speedoAddGenClassListener, speedoGetGenClassId, speedoGetPBinding, speedoGetPType, speedoSetGcId, speedoSetLinkedField, speedoSetPBinding, speedoSetPNameHints, speedoSetPType |
Methods inherited from interface org.objectweb.speedo.mim.api.PersistentObjectItf |
speedoAdd, speedoCopyState, speedoGetEncodedPName, speedoGetHome, speedoGetPNameHints, speedoGetPOManager, speedoGetState, speedoIsActive, speedoIsActive, speedoIsPersistent, speedoSetEncodedPName |
Methods inherited from interface org.objectweb.jorm.api.PBinding |
bind, exist, export, export, getPClassMapping, getPName, getStatus, init, read, read, read, unbind, unexport, write |
Methods inherited from interface java.util.Map |
equals, hashCode |
HashMapImpl
public HashMapImpl()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.util.AbstractMap
speedoGetReferenceState
public StateItf speedoGetReferenceState()
- Specified by:
speedoGetReferenceState
in interface PersistentObjectItf
- 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
- Parameters:
refAcc
- the new reference accessor
createGenClass
public java.lang.Object createGenClass()
- Specified by:
createGenClass
in interface SpeedoGenClassPO
speedoCreateState
public StateItf speedoCreateState()
- Specified by:
speedoCreateState
in interface PersistentObjectItf
- Returns:
- a new StateItf instance.
size
public int size()
- Specified by:
size
in interface java.util.Map
- Overrides:
size
in class java.util.HashMap
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Map
- Overrides:
isEmpty
in class java.util.HashMap
containsValue
public boolean containsValue(java.lang.Object o)
- Specified by:
containsValue
in interface java.util.Map
- Overrides:
containsValue
in class java.util.HashMap
containsKey
public boolean containsKey(java.lang.Object o)
- Specified by:
containsKey
in interface java.util.Map
- Overrides:
containsKey
in class java.util.HashMap
get
public java.lang.Object get(java.lang.Object o)
- Specified by:
get
in interface java.util.Map
- Overrides:
get
in class java.util.HashMap
put
public java.lang.Object put(java.lang.Object o,
java.lang.Object o1)
- Specified by:
put
in interface java.util.Map
- Overrides:
put
in class java.util.HashMap
remove
public java.lang.Object remove(java.lang.Object o)
- Specified by:
remove
in interface java.util.Map
- Overrides:
remove
in class java.util.HashMap
putAll
public void putAll(java.util.Map map)
- Specified by:
putAll
in interface java.util.Map
- Overrides:
putAll
in class java.util.HashMap
clear
public void clear()
- Specified by:
clear
in interface java.util.Map
- Specified by:
clear
in interface SpeedoGenClassPO
- Overrides:
clear
in class java.util.HashMap
keySet
public java.util.Set keySet()
- Specified by:
keySet
in interface java.util.Map
- Overrides:
keySet
in class java.util.HashMap
entrySet
public java.util.Set entrySet()
- Specified by:
entrySet
in interface java.util.Map
- Overrides:
entrySet
in class java.util.HashMap
values
public java.util.Collection values()
- Specified by:
values
in interface java.util.Map
- Overrides:
values
in class java.util.HashMap