Interface IResourceReferenceDAO
-
- All Known Implementing Classes:
Db2ResourceReferenceDAO
,DerbyResourceReferenceDAO
,PostgresResourceReferenceDAO
,ResourceReferenceDAO
public interface IResourceReferenceDAO
Contract for DAO implementations handling persistence of resource references (and token parameters) with the normalized schema introduced in issue 1366.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addCommonTokenValues(String resourceType, Collection<ResourceTokenValueRec> xrefs)
Add TOKEN_VALUE_MAP records, creating any CODE_SYSTEMS and COMMON_TOKEN_VALUES as necessaryvoid
flush()
Execute any statements with pending batch entriesICommonTokenValuesCache
getResourceReferenceCache()
Get the cache used by the DAOvoid
persist(Collection<ResourceTokenValueRec> records)
Persist the records, which may span multiple resource typesCommonTokenValueResult
readCommonTokenValueId(String codeSystem, String tokenValue)
Find the database id for the given token value and system
-
-
-
Method Detail
-
getResourceReferenceCache
ICommonTokenValuesCache getResourceReferenceCache()
Get the cache used by the DAO- Returns:
-
flush
void flush() throws FHIRPersistenceException
Execute any statements with pending batch entries- Throws:
FHIRPersistenceException
-
addCommonTokenValues
void addCommonTokenValues(String resourceType, Collection<ResourceTokenValueRec> xrefs)
Add TOKEN_VALUE_MAP records, creating any CODE_SYSTEMS and COMMON_TOKEN_VALUES as necessary- Parameters:
resourceType
-xrefs
-
-
persist
void persist(Collection<ResourceTokenValueRec> records)
Persist the records, which may span multiple resource types- Parameters:
records
-
-
readCommonTokenValueId
CommonTokenValueResult readCommonTokenValueId(String codeSystem, String tokenValue)
Find the database id for the given token value and system- Parameters:
codeSystem
-tokenValue
-- Returns:
- the matching id from common_token_values.common_token_value_id or null if not found
-
-