Interface ICommonValuesDAO
-
- All Known Implementing Classes:
CommonValuesDAO
,DerbyCommonValuesDAO
public interface ICommonValuesDAO
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 java.lang.Long
readCanonicalId(java.lang.String canonicalValue)
Read the database canonical_id for the given valueCommonTokenValueResult
readCommonTokenValueId(java.lang.String codeSystem, java.lang.String tokenValue)
Find the database id for the given token value and systemjava.util.List<java.lang.Long>
readCommonTokenValueIdList(java.lang.String tokenValue)
Fetch the list of matching common_token_value_id records for the given tokenValue.java.util.Set<CommonTokenValueResult>
readCommonTokenValueIds(java.util.Collection<CommonTokenValue> tokenValues)
Find database ids for a set of common token values
-
-
-
Method Detail
-
readCommonTokenValueId
CommonTokenValueResult readCommonTokenValueId(java.lang.String codeSystem, java.lang.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
-
readCommonTokenValueIds
java.util.Set<CommonTokenValueResult> readCommonTokenValueIds(java.util.Collection<CommonTokenValue> tokenValues)
Find database ids for a set of common token values- Parameters:
tokenValues
-- Returns:
- a non-null, possibly-empty set of ids from common_token_values.common_token_value_id; CommonTokenValues with no corresponding record will be omitted from the set
-
readCommonTokenValueIdList
java.util.List<java.lang.Long> readCommonTokenValueIdList(java.lang.String tokenValue)
Fetch the list of matching common_token_value_id records for the given tokenValue.- Parameters:
tokenValue
-- Returns:
-
readCanonicalId
java.lang.Long readCanonicalId(java.lang.String canonicalValue)
Read the database canonical_id for the given value- Parameters:
canonicalValue
-- Returns:
-
-