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 necessaryvoiddeleteExternalReferences(int resourceTypeId, String logicalId)Delete current external references for a given resource type and logical id.voiddeleteLocalReferences(long logicalResourceId)Delete current local references for a given resource described by its logical_resource_id.voiddeleteLogicalResourceCompartments(long logicalResourceId)Delete the membership this resource has with other compartmentsvoidflush()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 types
-
-
-
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
-
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-
-
-