JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.aspects.persistence
Class ListWrapper

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.ListWrapper
All Implemented Interfaces:
Serializable

public class ListWrapper
extends CollectionWrapper

A wrapper for the list 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
ListWrapper(AspectComponent ac, boolean isLoaded)
           
 
Method Summary
 Object add(Interaction interaction)
           
 Object clear(Interaction interaction)
          Remove all instances from the collection
 Object contains(Interaction interaction)
           
protected  void doLoad(Wrappee wrappee)
          Really load the whole collection.
 Object get(Interaction interaction)
           
protected  long getCollectionSize(OID oid)
           
 Object indexOf(Interaction interaction)
           
 Object iterator(Interaction interaction)
           
 Object lastIndexOf(Interaction interaction)
           
 Object remove(Interaction interaction)
           
 Object set(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

ListWrapper

public ListWrapper(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

contains

public Object contains(Interaction interaction)
                throws Exception
Exception

add

public Object add(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

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

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli