Package com.ibm.fhir.persistence.jdbc
Class FHIRResourceDAOFactory
- java.lang.Object
-
- com.ibm.fhir.persistence.jdbc.FHIRResourceDAOFactory
-
public class FHIRResourceDAOFactory extends Object
Factory for constructing ResourceDAO implementations specific to a particularFHIRDbFlavor
.
-
-
Constructor Summary
Constructors Constructor Description FHIRResourceDAOFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReindexResourceDAO
getReindexResourceDAO(Connection connection, String adminSchemaName, String schemaName, FHIRDbFlavor flavor, TransactionSynchronizationRegistry trxSynchRegistry, FHIRPersistenceJDBCCache cache, ParameterDAO parameterDao)
Instantiate a new instance ofReindexResourceDAO
configured for the given database typestatic ResourceDAO
getResourceDAO(Connection connection, String adminSchemaName, String schemaName, FHIRDbFlavor flavor, FHIRPersistenceJDBCCache cache)
Construct a new ResourceDAO implementation matching the database typestatic ResourceDAO
getResourceDAO(Connection connection, String adminSchemaName, String schemaName, FHIRDbFlavor flavor, TransactionSynchronizationRegistry trxSynchRegistry, FHIRPersistenceJDBCCache cache, ParameterTransactionDataImpl ptdi)
Construct a new ResourceDAO implementation matching the database typestatic IResourceReferenceDAO
getResourceReferenceDAO(Connection connection, String adminSchemaName, String schemaName, FHIRDbFlavor flavor, FHIRPersistenceJDBCCache cache)
Get a standalone DAO to handle the inserts of the common token values and resource token refs just prior to the transaction commitstatic IDatabaseTranslator
getTranslatorForFlavor(FHIRDbFlavor flavor)
Get theIDatabaseTranslator
implementation specific to the givenFHIRDbFlavor
-
-
-
Method Detail
-
getResourceDAO
public static ResourceDAO getResourceDAO(Connection connection, String adminSchemaName, String schemaName, FHIRDbFlavor flavor, TransactionSynchronizationRegistry trxSynchRegistry, FHIRPersistenceJDBCCache cache, ParameterTransactionDataImpl ptdi) throws IllegalArgumentException, FHIRPersistenceException
Construct a new ResourceDAO implementation matching the database type- Parameters:
connection
- valid connection to the databaseschemaName
- the name of the schema containing the FHIR resource tablesflavor
- the type and capability of the database and schematrxSynchRegistry
-- Returns:
- a concrete implementation of
ResourceDAO
- Throws:
IllegalArgumentException
FHIRPersistenceException
-
getReindexResourceDAO
public static ReindexResourceDAO getReindexResourceDAO(Connection connection, String adminSchemaName, String schemaName, FHIRDbFlavor flavor, TransactionSynchronizationRegistry trxSynchRegistry, FHIRPersistenceJDBCCache cache, ParameterDAO parameterDao)
Instantiate a new instance ofReindexResourceDAO
configured for the given database type- Parameters:
connection
-schemaName
-flavor
-trxSynchRegistry
-cache
-parameterDao
-- Returns:
-
getTranslatorForFlavor
public static IDatabaseTranslator getTranslatorForFlavor(FHIRDbFlavor flavor)
Get theIDatabaseTranslator
implementation specific to the givenFHIRDbFlavor
- Parameters:
flavor
-- Returns:
-
getResourceDAO
public static ResourceDAO getResourceDAO(Connection connection, String adminSchemaName, String schemaName, FHIRDbFlavor flavor, FHIRPersistenceJDBCCache cache) throws IllegalArgumentException, FHIRPersistenceException
Construct a new ResourceDAO implementation matching the database type- Parameters:
connection
- valid connection to the databaseschemaName
- the name of the schema containing the FHIR resource tablesflavor
- the type and capability of the database and schema- Returns:
- a concrete implementation of
ResourceDAO
- Throws:
IllegalArgumentException
FHIRPersistenceException
-
getResourceReferenceDAO
public static IResourceReferenceDAO getResourceReferenceDAO(Connection connection, String adminSchemaName, String schemaName, FHIRDbFlavor flavor, FHIRPersistenceJDBCCache cache)
Get a standalone DAO to handle the inserts of the common token values and resource token refs just prior to the transaction commit- Parameters:
connection
-schemaName
-flavor
-cache
-- Returns:
-
-