Class FHIRUserTransactionFactory
- java.lang.Object
-
- com.ibm.fhir.persistence.jdbc.connection.FHIRUserTransactionFactory
-
- All Implemented Interfaces:
FHIRTransactionFactory
public class FHIRUserTransactionFactory extends java.lang.Object implements FHIRTransactionFactory
Factory implementation for creating new instances of FHIRTransactionImpl referencing a givenUserTransaction
object
-
-
Constructor Summary
Constructors Constructor Description FHIRUserTransactionFactory(javax.transaction.UserTransaction tx, javax.transaction.TransactionSynchronizationRegistry syncReg, FHIRPersistenceJDBCCache cache, java.lang.String transactionDataKey, java.util.function.Consumer<java.lang.Boolean> afterTransactionHandler)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FHIRPersistenceTransaction
create()
Create a new instance ofFHIRPersistenceTransaction
-
-
-
Constructor Detail
-
FHIRUserTransactionFactory
public FHIRUserTransactionFactory(javax.transaction.UserTransaction tx, javax.transaction.TransactionSynchronizationRegistry syncReg, FHIRPersistenceJDBCCache cache, java.lang.String transactionDataKey, java.util.function.Consumer<java.lang.Boolean> afterTransactionHandler)
Public constructor- Parameters:
tx
-syncReg
-cache
-transactionDataKey
-afterTransactionHandler
- a handler called after the transaction completes (true == committed; false == rolled back)
-
-
Method Detail
-
create
public FHIRPersistenceTransaction create()
Description copied from interface:FHIRTransactionFactory
Create a new instance ofFHIRPersistenceTransaction
- Specified by:
create
in interfaceFHIRTransactionFactory
- Returns:
-
-