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
deleteExternalReferences(int resourceTypeId, String logicalId)
Delete current external references for a given resource type and logical id.void
deleteLocalReferences(long logicalResourceId)
Delete current local references for a given resource described by its logical_resource_id.void
deleteLogicalResourceCompartments(long logicalResourceId)
Delete the membership this resource has with other compartmentsvoid
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 types
-
-
-
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
-
deleteExternalReferences
void deleteExternalReferences(int resourceTypeId, String logicalId)
Delete current external references for a given resource type and logical id. Typically called when creating a new version of a resource or when re-indexing- Parameters:
resourceTypeId
-logicalId
-
-
deleteLocalReferences
void deleteLocalReferences(long logicalResourceId)
Delete current local references for a given resource described by its logical_resource_id. Typically called when creating a new version of a resource or when re-indexing.- Parameters:
resourceType
-logicalId
-
-
deleteLogicalResourceCompartments
void deleteLogicalResourceCompartments(long logicalResourceId)
Delete the membership this resource has with other compartments- Parameters:
logicalResourceId
-
-
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
-
-
-