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
- Throws:
Exception
contains
public Object contains(Interaction interaction)
throws Exception
- Throws:
Exception
add
public Object add(Interaction interaction)
throws Exception
- Throws:
Exception
addAll
public Object addAll(Interaction interaction)
throws Exception
- Throws:
Exception
get
public Object get(Interaction interaction)
throws Exception
- Throws:
Exception
remove
public Object remove(Interaction interaction)
throws Exception
- Throws:
Exception
removeRange
public Object removeRange(Interaction interaction)
throws Exception
- Throws:
Exception
clear
public Object clear(Interaction interaction)
throws Exception
- Remove all instances from the collection
- Specified by:
clear
in class CollectionWrapper
- Throws:
Exception
set
public Object set(Interaction interaction)
throws Exception
- Throws:
Exception
indexOf
public Object indexOf(Interaction interaction)
throws Exception
- Throws:
Exception
lastIndexOf
public Object lastIndexOf(Interaction interaction)
throws Exception
- Throws:
Exception
getCollectionSize
protected long getCollectionSize(OID oid)
throws Exception
- Specified by:
getCollectionSize
in class CollectionWrapper
- Throws:
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
- Throws:
Throwable