Class ParameterTransactionDataImpl
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.jdbc.impl.ParameterTransactionDataImpl
-
- All Implemented Interfaces:
TransactionData
public class ParameterTransactionDataImpl extends java.lang.Object implements TransactionData
Holds all the parameter data for a given datasource. This data will be persisted at the end of the current transaction
-
-
Constructor Summary
Constructors Constructor Description ParameterTransactionDataImpl(java.lang.String datasourceId, FHIRPersistenceJDBCImpl impl, javax.transaction.UserTransaction userTransaction)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addReferenceValue(ResourceReferenceValueRec rec)
Add the record to the list of reference values being accumulated in this transactionvoid
addSecurityValue(ResourceTokenValueRec rec)
Add the given security parameter record to the list of records being accumulated in the transaction data.void
addTagValue(ResourceTokenValueRec rec)
Add the given tag parameter record to the list of records being accumulated in this transaction data.void
addValue(ResourceProfileRec rec)
Add the given profile parameter record to the list of records being accumulated in this transaction data.void
addValue(ResourceTokenValueRec rec)
Add this record to the list of records being accumulated in this transactionvoid
persist()
Persist the data.
-
-
-
Constructor Detail
-
ParameterTransactionDataImpl
public ParameterTransactionDataImpl(java.lang.String datasourceId, FHIRPersistenceJDBCImpl impl, javax.transaction.UserTransaction userTransaction)
Public constructor- Parameters:
datasourceId
-impl
-userTransaction
-
-
-
Method Detail
-
persist
public void persist()
Description copied from interface:TransactionData
Persist the data. Don't propagate any exceptions. If an exception occurs, log the error and mark the transaction for rollback.- Specified by:
persist
in interfaceTransactionData
-
addValue
public void addValue(ResourceTokenValueRec rec)
Add this record to the list of records being accumulated in this transaction- Parameters:
rec
-
-
addReferenceValue
public void addReferenceValue(ResourceReferenceValueRec rec)
Add the record to the list of reference values being accumulated in this transaction- Parameters:
rec
-
-
addValue
public void addValue(ResourceProfileRec rec)
Add the given profile parameter record to the list of records being accumulated in this transaction data. The records will be inserted to the database together at the end, just prior to the commit (seepersist()
- Parameters:
rec
-
-
addTagValue
public void addTagValue(ResourceTokenValueRec rec)
Add the given tag parameter record to the list of records being accumulated in this transaction data. The records will be inserted to the database together at the end, just prior to the commit (seepersist()
- Parameters:
rec
-
-
addSecurityValue
public void addSecurityValue(ResourceTokenValueRec rec)
Add the given security parameter record to the list of records being accumulated in the transaction data. The records will be inserted to the database together at the end, just prior to the commit (seepersist()
- Parameters:
rec
-
-
-