Package org.nuclos.api.rule
Interface TransactionalJobRule
public interface TransactionalJobRule
TransactionalJobRule
is the interface that should be used to make an rule
transactional.
Classes implementing this interface should always implement the JobRule
interface, too.
-
Method Summary
Modifier and TypeMethodDescriptiongetTransactionalObjects
(JobContext context) For every list entry returned by this method a new transaction will be opened.
-
Method Details
-
getTransactionalObjects
For every list entry returned by this method a new transaction will be opened.This is done automatically by the job runtime mechanism, which calls the
execute
method ofJobRule
for every object.
The single transactional object is accessible from theJobContext
viagetTransactionalObject
- Parameters:
context
-- Returns:
-