JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.aspects.persistence
Class SetWrapper

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

public class SetWrapper
extends CollectionWrapper

A wrapper for the Set 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
SetWrapper(AspectComponent ac, boolean isLoaded)
           
 
Method Summary
 boolean 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.
protected  long getCollectionSize(OID oid)
           
 Object iterator(Interaction interaction)
           
 Object remove(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

SetWrapper

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

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli