public interface Procedure
For a read-only transaction, ReadOnlyProcedure
must be
implemented instead.
The execution of a procedure happens in a dataspace and has the following features:
commit threshold
has been specified.information
can be added.Modifier and Type | Method and Description |
---|---|
void |
execute(ProcedureContext aContext)
Defines what this transaction does in the dataspace
specified by the container.
|
void execute(ProcedureContext aContext) throws Exception
If this method throws an exception, the container properly handles it, by cancelling the current transaction.
Furthermore, if a ProcedureContext
method raises an exception, then any
preceding modifications made on the repository are first cancelled before the client code
gets the exception. This additional feature ensures
that the repository and cache remain consistent, even if the client code catches exceptions.
The following constraints apply:
Exception
TableTrigger