Interface IResourceReferenceDAO
- 
- All Known Implementing Classes:
 Db2ResourceReferenceDAO,DerbyResourceReferenceDAO,PostgresResourceReferenceDAO,ResourceReferenceDAO
public interface IResourceReferenceDAOContract 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 voidaddCommonTokenValues(String resourceType, Collection<ResourceTokenValueRec> xrefs)Add TOKEN_VALUE_MAP records, creating any CODE_SYSTEMS and COMMON_TOKEN_VALUES as necessaryvoidflush()Execute any statements with pending batch entriesICommonTokenValuesCachegetResourceReferenceCache()Get the cache used by the DAOvoidpersist(Collection<ResourceTokenValueRec> records)Persist the records, which may span multiple resource typesCommonTokenValueResultreadCommonTokenValueId(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 FHIRPersistenceExceptionExecute 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
 
 
 - 
 
 -