org.objectweb.speedo.genclass.map
Class MapImpl
java.lang.Object
org.objectweb.speedo.genclass.GenClass
org.objectweb.speedo.genclass.map.MapImpl
- All Implemented Interfaces:
- org.objectweb.perseus.cache.api.CacheEntry, org.objectweb.perseus.cache.api.FixableCacheEntry, org.objectweb.jorm.util.api.Loggable, java.util.Map, org.objectweb.jorm.api.PBinding, org.objectweb.jorm.api.PBindingCtrl, javax.jdo.spi.PersistenceCapable, org.objectweb.perseus.cache.replacement.api.ReplaceableCacheEntry, SpeedoGenClassCoherence, SpeedoGenClassProxy, SpeedoProxy
- public class MapImpl
- extends GenClass
- implements java.util.Map
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Nested classes inherited from class javax.jdo.spi.PersistenceCapable |
javax.jdo.spi.PersistenceCapable.ObjectIdFieldConsumer, javax.jdo.spi.PersistenceCapable.ObjectIdFieldManager, javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier |
Fields inherited from class org.objectweb.speedo.genclass.GenClass |
age, encodedPName, fix, gcid, jdoIsActive, linkedField, listeners, logger, mapperName, pbinding, pnameHints, projectName, ptype |
Fields inherited from interface javax.jdo.spi.PersistenceCapable |
CHECK_READ, CHECK_WRITE, DETACHED, LOAD_REQUIRED, MEDIATE_READ, MEDIATE_WRITE, READ_OK, READ_WRITE_OK, SERIALIZABLE |
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. |
Methods inherited from class org.objectweb.speedo.genclass.GenClass |
bind, copyAccessor, elementIsReference, exist, export, export, fireSpeedoElementAdded, fireSpeedoElementRemoved, fixCe, getCeAge, getCeFixCount, getCeIdentifier, getCeObject, getDataIdentifier, getDataIdentifiers, getEncodedPName, getLogger, getLoggerFactory, getPClassMapping, getPName, getSpeedoAccessor, getSpeedoAccessors, getSpeedoHome, getStatus, init, init, jdoCopyFields, jdoCopyKeyFieldsFromObjectId, jdoCopyKeyFieldsToObjectId, jdoCopyKeyFieldsToObjectId, jdoGetGenClassId, jdoGetJdoFileName, jdoGetObjectId, jdoGetPBinding, jdoGetPersistenceManager, jdoGetPNameHints, jdoGetPType, jdoGetTransactionalObjectId, jdoGetVersion, jdoIsActive, jdoIsActive, jdoIsDeleted, jdoIsDetached, jdoIsDirty, jdoIsNew, jdoIsPersistent, jdoIsTransactional, jdoMakeDirty, jdoNewInstance, jdoNewInstance, jdoNewObjectIdInstance, jdoNewObjectIdInstance, jdoNewObjectIdInstance, jdoProvideField, jdoProvideFields, jdoReplaceField, jdoReplaceFields, jdoReplaceFlags, jdoReplaceObjectId, jdoReplaceStateManager, jdoSetLinkedField, jdoSetPBinding, jdoSetPNameHints, jdoSetPType, read, read, removeSpeedoAccessor, setCeAge, setElements, setEncodedPName, setLogger, setLoggerFactory, setPName, setStatus, speedoAdd, speedoAdd, speedoAddGenClassListener, speedoRemove, speedoSetGcId, 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 |
MapImpl
public MapImpl()
- Instantiates a new map.
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
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)
getReferenceAccessor
public SpeedoAccessor getReferenceAccessor()
- Specified by:
getReferenceAccessor
in interface SpeedoProxy
- Specified by:
getReferenceAccessor
in class GenClass
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
- Specified by:
setReferenceAccessor
in class GenClass
createAccessor
public SpeedoAccessor createAccessor()
- Specified by:
createAccessor
in interface SpeedoProxy
- Specified by:
createAccessor
in class GenClass
createGenClass
public java.lang.Object createGenClass()
- Specified by:
createGenClass
in interface SpeedoGenClassProxy