
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNonCompatiblePartition
(RequestPartitionId thePartitionA, RequestPartitionId thePartitionB) void
protected <T> T
doExecute
(HapiTransactionService.ExecutionBuilder theExecutionBuilder, org.springframework.transaction.support.TransactionCallback<T> theCallback) boolean
isCompatiblePartition
(RequestPartitionId theRequestPartitionId, RequestPartitionId theOtherRequestPartitionId) Are two RequestPartitionId values compatible within the same transaction?Methods inherited from class ca.uhn.fhir.jpa.dao.tx.HapiTransactionService
buildExecutionBuilder, doExecuteCallback, execute, execute, execute, execute, execute, executeWithDefaultPartitionInContext, getRequestPartitionAssociatedWithThread, getTransactionManager, invokeCallableAndHandleAnyException, 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
-
isCompatiblePartition
public boolean isCompatiblePartition(RequestPartitionId theRequestPartitionId, RequestPartitionId theOtherRequestPartitionId) Description copied from interface:IHapiTransactionService
Are two RequestPartitionId values compatible within the same transaction?This is an experimental API, subject to change in a future release.
- Specified by:
isCompatiblePartition
in interfaceIHapiTransactionService
- Overrides:
isCompatiblePartition
in classHapiTransactionService
-
clearNonCompatiblePartitions
-
addNonCompatiblePartition
public void addNonCompatiblePartition(RequestPartitionId thePartitionA, RequestPartitionId thePartitionB)
-