Package ca.uhn.fhir.jpa.dao.tx
Class NonTransactionalHapiTransactionService
java.lang.Object
ca.uhn.fhir.jpa.dao.tx.HapiTransactionService
ca.uhn.fhir.jpa.dao.tx.NonTransactionalHapiTransactionService
- All Implemented Interfaces:
IHapiTransactionService
A transaction service implementation that does not actually
wrap any transactions. This is mostly intended for tests but
could be used in non-transactional systems too.
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.uhn.fhir.jpa.dao.tx.HapiTransactionService
HapiTransactionService.ExecutionBuilder
Nested classes/interfaces inherited from interface ca.uhn.fhir.jpa.dao.tx.IHapiTransactionService
IHapiTransactionService.IExecutionBuilder
-
Field Summary
Fields inherited from class ca.uhn.fhir.jpa.dao.tx.HapiTransactionService
DEFAULT_TRANSACTION_PROPAGATION_WHEN_CHANGING_PARTITIONS, myInterceptorBroadcaster, myPartitionSettings, myRequestPartitionHelperSvc, myTransactionManager, XACT_USERDATA_KEY_EXISTING_SEARCH_PARAMS, XACT_USERDATA_KEY_RESOLVED_TAG_DEFINITIONS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> T
doExecute
(HapiTransactionService.ExecutionBuilder theExecutionBuilder, org.springframework.transaction.support.TransactionCallback<T> theCallback) Methods inherited from class ca.uhn.fhir.jpa.dao.tx.HapiTransactionService
buildExecutionBuilder, doExecuteCallback, execute, execute, execute, execute, execute, executeWithDefaultPartitionInContext, getRequestPartitionAssociatedWithThread, getTransactionManager, invokeCallableAndHandleAnyException, isCompatiblePartition, isCustomIsolationSupported, isRequiresNewTransactionWhenChangingPartitions, noTransactionAllowed, requireTransaction, setInterceptorBroadcaster, setPartitionSettingsForUnitTest, setRequestPartitionSvcForUnitTest, setSleepUtil, setTransactionManager, setTransactionPropagationWhenChangingPartitions, withRequest, withRequest, withSystemRequest
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.jpa.dao.tx.IHapiTransactionService
withSystemRequestOnDefaultPartition, withSystemRequestOnPartition
-
Constructor Details
-
NonTransactionalHapiTransactionService
-
-
Method Details
-
doExecute
@Nullable protected <T> T doExecute(HapiTransactionService.ExecutionBuilder theExecutionBuilder, org.springframework.transaction.support.TransactionCallback<T> theCallback) - Overrides:
doExecute
in classHapiTransactionService
-