ca.mcgill.sel.aspectoptima.aspects.transaction
Annotation Type TransactableMethod
@Target(value=METHOD)
@Documented
@Retention(value=RUNTIME)
public @interface TransactableMethod
Marks a method as Transactable for the AspectOPTIMA Framework.
The parameter accessKind() should provide the kind of access (i.e.
AccessKind.READ, AccessKind.WRITE, AccessKind.UPDATE) and defaults to
AccessKind.WRITE.
The parameter updateStrategy() should provide the update strategy (i.e
UpdateStrategy.CHECKPOINTING or UpdateStrategy.DEFERRING).
The parameter concurrencyControl() should provide the concurrency control
mechanism (i.e ConcurrencyControl.TWOPHASELOCKING or
ConcurrencyControl.OPTIMISTICVALIDATION).
The parameter nested() decides whether nested transactions are allowed.
Classes containing Transactable methods should be annotated with
accessKind
public abstract ca.mcgill.sel.aspectoptima.aspects.accessclassified.AccessKind accessKind
concurrencyControl
public abstract ConcurrencyControl concurrencyControl
nested
public abstract boolean nested
updateStrategy
public abstract UpdateStrategy updateStrategy