Package ca.uhn.fhir.jpa.cache
Class ResourceVersionSvcDaoImpl
java.lang.Object
ca.uhn.fhir.jpa.cache.ResourceVersionSvcDaoImpl
- All Implemented Interfaces:
IResourceVersionSvc
This service builds a map of resource ids to versions based on a SearchParameterMap.
It is used by the in-memory resource-version cache to detect when resource versions have been changed by remote processes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLatestVersionIdsForResourceIds
(RequestPartitionId theRequestPartitionId, List<org.hl7.fhir.instance.model.api.IIdType> theIds) Retrieves the latest versions for any resourceid that are found.getVersionMap
(RequestPartitionId theRequestPartitionId, String theResourceName, SearchParameterMap theSearchParamMap) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.jpa.cache.IResourceVersionSvc
getVersionMap
-
Constructor Details
-
ResourceVersionSvcDaoImpl
public ResourceVersionSvcDaoImpl()
-
-
Method Details
-
getVersionMap
@Nonnull public ResourceVersionMap getVersionMap(RequestPartitionId theRequestPartitionId, String theResourceName, SearchParameterMap theSearchParamMap) - Specified by:
getVersionMap
in interfaceIResourceVersionSvc
-
getLatestVersionIdsForResourceIds
public ResourcePersistentIdMap getLatestVersionIdsForResourceIds(RequestPartitionId theRequestPartitionId, List<org.hl7.fhir.instance.model.api.IIdType> theIds) Retrieves the latest versions for any resourceid that are found. If they are not found, they will not be contained in the returned map. The key should be the same value that was passed in to allow consumer to look up the value using the id they already have. This method should not throw, so it can safely be consumed in transactions.- Specified by:
getLatestVersionIdsForResourceIds
in interfaceIResourceVersionSvc
- Parameters:
theRequestPartitionId
- - request partition idtheIds
- - list of IIdTypes for resources of interest.
-