Package com.ibm.fhir.persistence.jdbc
Class FHIRResourceDAOFactory
- java.lang.Object
- 
- com.ibm.fhir.persistence.jdbc.FHIRResourceDAOFactory
 
- 
 public class FHIRResourceDAOFactory extends java.lang.ObjectFactory for constructing ResourceDAO implementations specific to a particularFHIRDbFlavor.
- 
- 
Constructor SummaryConstructors Constructor Description FHIRResourceDAOFactory()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static ReindexResourceDAOgetReindexResourceDAO(java.sql.Connection connection, java.lang.String adminSchemaName, java.lang.String schemaName, FHIRDbFlavor flavor, javax.transaction.TransactionSynchronizationRegistry trxSynchRegistry, FHIRPersistenceJDBCCache cache, ParameterDAO parameterDao)Instantiate a new instance ofReindexResourceDAOconfigured for the given database typestatic ResourceDAOgetResourceDAO(java.sql.Connection connection, java.lang.String adminSchemaName, java.lang.String schemaName, FHIRDbFlavor flavor, FHIRPersistenceJDBCCache cache)Construct a new ResourceDAO implementation matching the database typestatic ResourceDAOgetResourceDAO(java.sql.Connection connection, java.lang.String adminSchemaName, java.lang.String schemaName, FHIRDbFlavor flavor, javax.transaction.TransactionSynchronizationRegistry trxSynchRegistry, FHIRPersistenceJDBCCache cache, ParameterTransactionDataImpl ptdi)Construct a new ResourceDAO implementation matching the database typestatic ResourceReferenceDAOgetResourceReferenceDAO(java.sql.Connection connection, java.lang.String adminSchemaName, java.lang.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 FhirSequenceDAOgetSequenceDAO(java.sql.Connection connection, FHIRDbFlavor flavor)Get an implementation ofFhirSequenceDAOsuitable for the database type described by flavor.static IDatabaseTranslatorgetTranslatorForFlavor(FHIRDbFlavor flavor)Get theIDatabaseTranslatorimplementation specific to the givenFHIRDbFlavor
 
- 
- 
- 
Method Detail- 
getResourceDAOpublic static ResourceDAO getResourceDAO(java.sql.Connection connection, java.lang.String adminSchemaName, java.lang.String schemaName, FHIRDbFlavor flavor, javax.transaction.TransactionSynchronizationRegistry trxSynchRegistry, FHIRPersistenceJDBCCache cache, ParameterTransactionDataImpl ptdi) throws java.lang.IllegalArgumentException, FHIRPersistenceException Construct a new ResourceDAO implementation matching the database type- Parameters:
- connection- valid connection to the database
- schemaName- the name of the schema containing the FHIR resource tables
- flavor- the type and capability of the database and schema
- trxSynchRegistry-
- Returns:
- a concrete implementation of ResourceDAO
- Throws:
- java.lang.IllegalArgumentException
- FHIRPersistenceException
 
 - 
getReindexResourceDAOpublic static ReindexResourceDAO getReindexResourceDAO(java.sql.Connection connection, java.lang.String adminSchemaName, java.lang.String schemaName, FHIRDbFlavor flavor, javax.transaction.TransactionSynchronizationRegistry trxSynchRegistry, FHIRPersistenceJDBCCache cache, ParameterDAO parameterDao) Instantiate a new instance ofReindexResourceDAOconfigured for the given database type- Parameters:
- connection-
- schemaName-
- flavor-
- trxSynchRegistry-
- cache-
- parameterDao-
- Returns:
 
 - 
getTranslatorForFlavorpublic static IDatabaseTranslator getTranslatorForFlavor(FHIRDbFlavor flavor) Get theIDatabaseTranslatorimplementation specific to the givenFHIRDbFlavor- Parameters:
- flavor-
- Returns:
 
 - 
getResourceDAOpublic static ResourceDAO getResourceDAO(java.sql.Connection connection, java.lang.String adminSchemaName, java.lang.String schemaName, FHIRDbFlavor flavor, FHIRPersistenceJDBCCache cache) throws java.lang.IllegalArgumentException, FHIRPersistenceException Construct a new ResourceDAO implementation matching the database type- Parameters:
- connection- valid connection to the database
- schemaName- the name of the schema containing the FHIR resource tables
- flavor- the type and capability of the database and schema
- Returns:
- a concrete implementation of ResourceDAO
- Throws:
- java.lang.IllegalArgumentException
- FHIRPersistenceException
 
 - 
getResourceReferenceDAOpublic static ResourceReferenceDAO getResourceReferenceDAO(java.sql.Connection connection, java.lang.String adminSchemaName, java.lang.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:
 
 - 
getSequenceDAOpublic static FhirSequenceDAO getSequenceDAO(java.sql.Connection connection, FHIRDbFlavor flavor) Get an implementation ofFhirSequenceDAOsuitable for the database type described by flavor.- Parameters:
- connection-
- flavor-
- Returns:
 
 
- 
 
-