
Package ca.uhn.fhir.jpa.cache
Class ResourceVersionMap
java.lang.Object
ca.uhn.fhir.jpa.cache.ResourceVersionMap
This immutable map holds a copy of current resource versions read from the repository.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(org.hl7.fhir.instance.model.api.IIdType theId) static ResourceVersionMap
empty()
static ResourceVersionMap
fromResources
(List<? extends org.hl7.fhir.instance.model.api.IBaseResource> theResources) static ResourceVersionMap
fromResourceTableEntities
(List<? extends IBasePersistedResource> theEntities) get
(org.hl7.fhir.instance.model.api.IIdType theId) Set<org.hl7.fhir.instance.model.api.IIdType>
getVersion
(org.hl7.fhir.instance.model.api.IIdType theResourceId) boolean
isEmpty()
Set<org.hl7.fhir.instance.model.api.IIdType>
keySet()
int
size()
-
Method Details
-
fromResourceTableEntities
public static ResourceVersionMap fromResourceTableEntities(List<? extends IBasePersistedResource> theEntities) -
fromResources
public static ResourceVersionMap fromResources(List<? extends org.hl7.fhir.instance.model.api.IBaseResource> theResources) -
empty
-
getVersion
-
size
-
keySet
-
getSourceIds
-
get
-
containsKey
-
isEmpty
-