JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.aspects.integrity
Class PrimaryKeyWrapper

java.lang.Object
  |
  +--org.objectweb.jac.core.Wrapper
        |
        +--org.objectweb.jac.aspects.integrity.PrimaryKeyWrapper
All Implemented Interfaces:
Serializable

public class PrimaryKeyWrapper
extends Wrapper

This wrapper provides a key scheme to limit fields doubles.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jac.core.Wrapper
ac
 
Constructor Summary
PrimaryKeyWrapper(AspectComponent ac)
           
 
Method Summary
 Object checkDoubles(Interaction interaction)
          This wrapping method checks if the added Object's fields match with an Object in the added collection, and throws an exception if there is one.
 
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

PrimaryKeyWrapper

public PrimaryKeyWrapper(AspectComponent ac)
Method Detail

checkDoubles

public Object checkDoubles(Interaction interaction)
                    throws Exception
This wrapping method checks if the added Object's fields match with an Object in the added collection, and throws an exception if there is one.

Exception

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli