JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.aspects.persistence
Class MapWrapper

java.lang.Object
  |
  +--org.objectweb.jac.core.Wrapper
        |
        +--org.objectweb.jac.aspects.persistence.PersistenceWrapper
              |
              +--org.objectweb.jac.aspects.persistence.CollectionWrapper
                    |
                    +--org.objectweb.jac.aspects.persistence.MapWrapper
All Implemented Interfaces:
Serializable

public class MapWrapper
extends CollectionWrapper

A wrapper for the Map interface.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.objectweb.jac.aspects.persistence.PersistenceWrapper
PersistenceWrapper.InvalidOidException
 
Field Summary
 
Fields inherited from class org.objectweb.jac.aspects.persistence.PersistenceWrapper
ATTR_ADDED
 
Fields inherited from class org.objectweb.jac.core.Wrapper
ac
 
Constructor Summary
MapWrapper(AspectComponent ac, boolean isLoaded)
           
 
Method Summary
 Object clear(Interaction interaction)
          Remove all instances from the collection
 Object containsKey(Interaction interaction)
           
 Object containsValue(Interaction interaction)
           
protected  void doLoad(Wrappee wrappee)
          Really load the whole collection.
 Object get(Interaction interaction)
           
protected  long getCollectionSize(OID oid)
           
 Object iterator(Interaction interaction)
           
 Object put(Interaction interaction)
           
 Object remove(Interaction interaction)
           
 
Methods inherited from class org.objectweb.jac.aspects.persistence.CollectionWrapper
getUseDate, isEmpty, isLoaded, load, memorizeUseDate, preload, size, unload
 
Methods inherited from class org.objectweb.jac.aspects.persistence.PersistenceWrapper
addToCollection, applyPersistence, checkOid, getAC, getCollection, getOID, getReference, getStorage, handleStatic, initAllFields, initCollections, isPersistent, loadAllFields, makePersistent, normalizeInput, normalizeOutput, removeFromCollection, setField, setReference, updateCollection, wrapCollections
 
Methods inherited from class org.objectweb.jac.core.Wrapper
attr, attrdef, defines, getAspectComponent, getAspectComponentName, getExceptionHandlers, proceed, setAspectComponent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapWrapper

public MapWrapper(AspectComponent ac,
                  boolean isLoaded)
Method Detail

doLoad

protected void doLoad(Wrappee wrappee)
               throws Exception
Description copied from class: CollectionWrapper
Really load the whole collection. This is an abstract method must be overriden by subclasses.

Specified by:
doLoad in class CollectionWrapper
Exception

containsKey

public Object containsKey(Interaction interaction)
                   throws Exception
Exception

containsValue

public Object containsValue(Interaction interaction)
                     throws Exception
Exception

put

public Object put(Interaction interaction)
           throws Exception
Exception

get

public Object get(Interaction interaction)
           throws Exception
Exception

remove

public Object remove(Interaction interaction)
              throws Exception
Exception

clear

public Object clear(Interaction interaction)
             throws Exception
Remove all instances from the collection

Specified by:
clear in class CollectionWrapper
Exception

getCollectionSize

protected long getCollectionSize(OID oid)
                          throws Exception
Specified by:
getCollectionSize in class CollectionWrapper
Exception

iterator

public Object iterator(Interaction interaction)
Specified by:
iterator in class CollectionWrapper

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli