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 ResourceDAOgetResourceDAO(Connection connection, String schemaName, FHIRDbFlavor flavor)Construct a new ResourceDAO implementation matching the database typestatic ResourceDAOgetResourceDAO(Connection connection, String schemaName, FHIRDbFlavor flavor, TransactionSynchronizationRegistry trxSynchRegistry)Construct a new ResourceDAO implementation matching the database type
-
-
-
Method Detail
-
getResourceDAO
public static ResourceDAO getResourceDAO(Connection connection, String schemaName, FHIRDbFlavor flavor, TransactionSynchronizationRegistry trxSynchRegistry) 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:
IllegalArgumentExceptionFHIRPersistenceException
-
getResourceDAO
public static ResourceDAO getResourceDAO(Connection connection, String schemaName, FHIRDbFlavor flavor) 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:
IllegalArgumentExceptionFHIRPersistenceException
-
-