Class TransactionalExecutor
java.lang.Object
com.polarion.alm.shared.api.transaction.TransactionalExecutor
Executor for code using the
ReadOnlyTransaction
or WriteTransaction
- Since:
- 3.9.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ReadOnlyTransaction>
TReturns current transaction.static <T> T
Executes the runnable in read only transaction.static <T> T
executeInWriteTransaction
(RunnableInWriteTransaction<T> runnable) Executes the runnable in write transaction, should be used only when some writing is needed.static <T> T
Executes the runnable in read only transaction.
-
Method Details
-
currentTransaction
Returns current transaction.
-