org.objectweb.speedo.genclass.map
Class HashtableImpl

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable
          extended by org.objectweb.speedo.genclass.map.HashtableImpl
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 HashtableImpl
extends java.util.Hashtable
implements SpeedoGenClassPO

Author:
S.Chassande-Barrioz
See Also:
Serialized Form

Field Summary
 
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
HashtableImpl()
           
 
Method Summary
 void clear()
           
 boolean contains(java.lang.Object o)
           
 boolean containsKey(java.lang.Object o)
           
 boolean containsValue(java.lang.Object o)
           
 java.lang.Object createGenClass()
           
 java.util.Enumeration elements()
           
 java.util.Set entrySet()
           
 java.lang.Object get(java.lang.Object o)
           
 boolean isEmpty()
           
 java.util.Enumeration keys()
           
 java.util.Set keySet()
           
 java.lang.Object put(java.lang.Object o, java.lang.Object o1)
           
 void putAll(java.util.Map map)
           
protected  void rehash()
           
 java.lang.Object remove(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.lang.String toString()
           
 java.util.Collection values()
           
 
Methods inherited from class java.util.Hashtable
clone, 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 org.objectweb.perseus.cache.replacement.api.ReplaceableCacheEntry
getCeAge, setCeAge
 
Methods inherited from interface org.objectweb.perseus.cache.api.FixableCacheEntry
fixCe, getCeFixCount, unfixCe
 
Methods inherited from interface org.objectweb.perseus.cache.api.CacheEntry
getCeIdentifier, getCeObject
 
Methods inherited from interface org.objectweb.speedo.genclass.api.SpeedoGenClassCoherence
speedoAdd, speedoRemove
 

Constructor Detail

HashtableImpl

public HashtableImpl()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.util.Hashtable

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.Hashtable

isEmpty

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

keys

public java.util.Enumeration keys()
Overrides:
keys in class java.util.Hashtable

elements

public java.util.Enumeration elements()
Overrides:
elements in class java.util.Hashtable

contains

public boolean contains(java.lang.Object o)
Overrides:
contains in class java.util.Hashtable

containsValue

public boolean containsValue(java.lang.Object o)
Specified by:
containsValue in interface java.util.Map
Overrides:
containsValue in class java.util.Hashtable

containsKey

public boolean containsKey(java.lang.Object o)
Specified by:
containsKey in interface java.util.Map
Overrides:
containsKey in class java.util.Hashtable

get

public java.lang.Object get(java.lang.Object o)
Specified by:
get in interface java.util.Map
Overrides:
get in class java.util.Hashtable

rehash

protected void rehash()
Overrides:
rehash in class java.util.Hashtable

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.Hashtable

remove

public java.lang.Object remove(java.lang.Object o)
Specified by:
remove in interface java.util.Map
Overrides:
remove in class java.util.Hashtable

putAll

public void putAll(java.util.Map map)
Specified by:
putAll in interface java.util.Map
Overrides:
putAll in class java.util.Hashtable

clear

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

keySet

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

entrySet

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

values

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