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.
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Object> |
getTransactionalObjects(JobContext context)
For every list entry returned by this method a new transaction will be opened.
|
java.util.List<java.lang.Object> getTransactionalObjects(JobContext context)
This is done automatically by the job runtime mechanism, which calls the execute
method of JobRule
for every object.
The single transactional object is accessible from the JobContext
via getTransactionalObject
context
- Copyright © 2024. All rights reserved.