org.objectweb.jac.aspects.persistence
Class SetWrapper
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.SetWrapper
- All Implemented Interfaces:
- Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable
- public class SetWrapper
- extends CollectionWrapper
A wrapper for the Set 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 |
SetWrapper
public SetWrapper(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
contains
public Object contains(Interaction interaction)
throws Exception
Exception
add
public boolean add(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