Class PostgresResourceReferenceDAO
- java.lang.Object
- 
- com.ibm.fhir.persistence.jdbc.dao.impl.ResourceReferenceDAO
- 
- com.ibm.fhir.persistence.jdbc.postgres.PostgresResourceReferenceDAO
 
 
- 
- All Implemented Interfaces:
- IResourceReferenceDAO,- AutoCloseable
 
 public class PostgresResourceReferenceDAO extends ResourceReferenceDAO Postgres-specific extension of theResourceReferenceDAOto work around some SQL syntax and Postgres concurrency issues
- 
- 
Field Summary- 
Fields inherited from class com.ibm.fhir.persistence.jdbc.dao.impl.ResourceReferenceDAOBATCH_SIZE
 
- 
 - 
Constructor SummaryConstructors Constructor Description PostgresResourceReferenceDAO(IDatabaseTranslator t, Connection c, String schemaName, ICommonTokenValuesCache cache)Public constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoCodeSystemsUpsert(String paramList, Collection<String> systemNames)Insert any missing values into the code_systems tableprotected voiddoCommonTokenValuesUpsert(String paramList, Collection<CommonTokenValue> tokenValues)Execute the insert (upsert) into the common_token_values table for the given collection of values.- 
Methods inherited from class com.ibm.fhir.persistence.jdbc.dao.impl.ResourceReferenceDAOaddCommonTokenValues, close, deleteExternalReferences, deleteLocalReferences, deleteLogicalResourceCompartments, flush, getCache, getConnection, getResourceReferenceCache, getSchemaName, getTranslator, insertResourceTokenRefs, persist, queryExternalReferenceValueId, queryExternalReferenceValues, queryExternalSystemId, queryExternalSystems, upsertCodeSystems, upsertCommonTokenValues
 
- 
 
- 
- 
- 
Constructor Detail- 
PostgresResourceReferenceDAOpublic PostgresResourceReferenceDAO(IDatabaseTranslator t, Connection c, String schemaName, ICommonTokenValuesCache cache) Public constructor- Parameters:
- t-
- c-
- schemaName-
- cache-
 
 
- 
 - 
Method Detail- 
doCodeSystemsUpsertpublic void doCodeSystemsUpsert(String paramList, Collection<String> systemNames) Description copied from class:ResourceReferenceDAOInsert any missing values into the code_systems table- Specified by:
- doCodeSystemsUpsertin class- ResourceReferenceDAO
 
 - 
doCommonTokenValuesUpsertprotected void doCommonTokenValuesUpsert(String paramList, Collection<CommonTokenValue> tokenValues) Description copied from class:ResourceReferenceDAOExecute the insert (upsert) into the common_token_values table for the given collection of values. Note, this insert from negative outer join requires the database concurrency implementation to be correct. This does not work for Postgres, hence Postgres gets its own implementation of this method- Specified by:
- doCommonTokenValuesUpsertin class- ResourceReferenceDAO
 
 
- 
 
-