org.objectweb.speedo.genclass.map
Class HashtableImpl

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byorg.objectweb.speedo.genclass.map.HashtableImpl
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable, SpeedoGenClassCoherence, SpeedoGenClassProxy, SpeedoProxy

public abstract class HashtableImpl
extends java.util.Hashtable
implements SpeedoGenClassProxy

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

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)
           
 SpeedoAccessor createAccessor()
           
 java.lang.Object createGenClass()
           
 java.util.Enumeration elements()
           
 java.util.Set entrySet()
           
 java.lang.Object get(java.lang.Object o)
           
 SpeedoAccessor getReferenceAccessor()
           
 boolean isEmpty()
           
abstract  void jdoMakePersistent(ProxyManager pm, java.util.Iterator it)
           
 void jdoMakePersistent(ProxyManager pm, SpeedoAccessor sa)
           
 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)
           
 void setReferenceAccessor(SpeedoAccessor refAcc)
          Assignes the reference accessor to the SpeedoProxy The Reference accessor is used for non persistent instance, as cache value and for pessimistic policy.
 int size()
           
 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.SpeedoGenClassProxy
fireSpeedoElementAdded, fireSpeedoElementRemoved, init, jdoGetGenClassId, jdoGetPBinding, jdoGetPType, jdoMakePersistent, jdoReadIntention, jdoSetLinkedField, jdoSetPBinding, jdoSetPNameHints, jdoSetPType, jdoWriteIntention, setElements, speedoAddGenClassListener, speedoSetGcId
 
Methods inherited from interface org.objectweb.speedo.mim.api.SpeedoProxy
copyAccessor, fgGetFieldsToLoad, fgGetFieldsToLoad, fgGetNestedFetchGroups, fgIsDefined, fgIsPostload, getEncodedPName, getSpeedoAccessor, jdoAttachCopy, jdoDeletePersistent, jdoDetachCopy, jdoGetJdoFileName, jdoGetPNameHints, jdoGetProjectName, jdoGetProxyManagerFactory, jdoGetTransactionalPersistenceManager, jdoGetVersioningStrategy, jdoIsActive, jdoIsActive, jdoIsDetachable, jdoRefresh, jdoSetProxyManagerFactory, jdoSetTransactionalPersistenceManager, setEncodedPName, speedoAdd
 
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()

jdoMakePersistent

public abstract void jdoMakePersistent(ProxyManager pm,
                                       java.util.Iterator it)

getReferenceAccessor

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

setReferenceAccessor

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

Specified by:
setReferenceAccessor in interface SpeedoProxy
Parameters:
refAcc - the new reference accessor

createGenClass

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

createAccessor

public SpeedoAccessor createAccessor()
Specified by:
createAccessor in interface SpeedoProxy
Returns:
a new SpeedoAccessor instance.

jdoMakePersistent

public void jdoMakePersistent(ProxyManager pm,
                              SpeedoAccessor sa)
Specified by:
jdoMakePersistent in interface SpeedoProxy

size

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

isEmpty

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

keys

public java.util.Enumeration keys()

elements

public java.util.Enumeration elements()

contains

public boolean contains(java.lang.Object o)

containsValue

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

containsKey

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

get

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

rehash

protected void rehash()

put

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

remove

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

putAll

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

clear

public void clear()
Specified by:
clear in interface SpeedoGenClassProxy

keySet

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

entrySet

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

values

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