org.objectweb.jac.aspects.persistence
Class ListWrapper
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.ListWrapper
- All Implemented Interfaces:
- Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable
- public class ListWrapper
- extends CollectionWrapper
A wrapper for the list 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 |
ListWrapper
public ListWrapper(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 Object add(Interaction interaction)
throws Exception
Exception
addAll
public Object addAll(Interaction interaction)
throws Exception
Exception
get
public Object get(Interaction interaction)
throws Exception
Exception
remove
public Object remove(Interaction interaction)
throws Exception
Exception
removeRange
public Object removeRange(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
set
public Object set(Interaction interaction)
throws Exception
Exception
indexOf
public Object indexOf(Interaction interaction)
throws Exception
Exception
lastIndexOf
public Object lastIndexOf(Interaction interaction)
throws Exception
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