org.objectweb.jac.aspects.persistence
Class MapWrapper
java.lang.Object
|
+--org.objectweb.jac.core.Wrapper
|
+--org.objectweb.jac.aspects.persistence.AbstractPersistenceWrapper
|
+--org.objectweb.jac.aspects.persistence.CollectionWrapper
|
+--org.objectweb.jac.aspects.persistence.MapWrapper
- All Implemented Interfaces:
- Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable
- public class MapWrapper
- extends CollectionWrapper
A wrapper for the Map interface.
- See Also:
- Serialized Form
Fields inherited from class org.objectweb.jac.core.Wrapper |
ac, cr |
Methods inherited from class org.objectweb.jac.aspects.persistence.CollectionWrapper |
convert, getUseDate, isCache, isEmpty, isLoaded, load, preload, setCache, size, touch, unload |
MapWrapper
public MapWrapper(AspectComponent ac,
Object substance,
CollectionItem collection,
boolean isLoaded)
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
invoke
public Object invoke(MethodInvocation invocation)
throws Throwable
- Specified by:
invoke
in interface MethodInterceptor
- Overrides:
invoke
in class Wrapper
Throwable