org.objectweb.jac.aspects.integrity
Class PrimaryKeyWrapper
java.lang.Object
org.objectweb.jac.core.Wrapper
org.objectweb.jac.aspects.integrity.PrimaryKeyWrapper
- All Implemented Interfaces:
- Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable
- public class PrimaryKeyWrapper
- extends Wrapper
This wrapper provides a key scheme to limit fields
doubles.
- See Also:
- Serialized Form
Fields inherited from class org.objectweb.jac.core.Wrapper |
ac, cr |
PrimaryKeyWrapper
public PrimaryKeyWrapper(AspectComponent ac)
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.
- Throws:
Exception
invoke
public Object invoke(MethodInvocation invocation)
throws Throwable
- Specified by:
invoke
in interface MethodInterceptor
- Overrides:
invoke
in class Wrapper
- Throws:
Throwable
construct
public Object construct(ConstructorInvocation invocation)
throws Throwable
- Specified by:
construct
in interface ConstructorInterceptor
- Overrides:
construct
in class Wrapper
- Throws:
Throwable