Package org.apache.jena.graph.impl
Class TransactionHandlerBase
java.lang.Object
org.apache.jena.graph.impl.TransactionHandlerBase
- All Implemented Interfaces:
TransactionHandler
- Direct Known Subclasses:
BaseInfGraph.InfTransactionHandler
,SimpleTransactionHandler
A base for transaction handlers; provide implementations of execute* operations
using the fundamental begin-commit-abort.
(This class predates java8 default methods.)
-
Constructor Details
-
TransactionHandlerBase
public TransactionHandlerBase()
-
-
Method Details
-
execute
Execute the runnableaction
within a transaction. If it completes normally, commit the transaction, otherwise abort the transaction.- Specified by:
execute
in interfaceTransactionHandler
-
calculate
Execute the supplieraction
within a transaction. If it completes normally, commit the transaction and return the result, otherwise abort the transaction.- Specified by:
calculate
in interfaceTransactionHandler
-