Package ca.uhn.fhir.jpa.dao
Interface IJpaStorageResourceParser
- All Superinterfaces:
IStorageResourceParser<JpaPid>
- All Known Implementing Classes:
JpaStorageResourceParser
-
Method Summary
Modifier and TypeMethodDescription<R extends org.hl7.fhir.instance.model.api.IBaseResource>
RpopulateResourceMetadata
(IBaseResourceEntity theEntitySource, boolean theForHistoryOperation, Collection<? extends BaseTag> tagList, long theVersion, R theResourceTarget) Populate the metadata (Resource.meta.*) from a storage entity and other related objects pulled from the database<R extends org.hl7.fhir.instance.model.api.IBaseResource>
RtoResource
(Class<R> theResourceType, IBaseResourceEntity theEntity, Collection<BaseTag> theTagList, boolean theForHistoryOperation) Convert a storage entity into a FHIR resource model instance.void
updateResourceMetadata
(IBaseResourceEntity theEntitySource, org.hl7.fhir.instance.model.api.IBaseResource theResourceTarget) Populates a resource model object's metadata (Resource.meta.*) based on the values from a storage entity.Methods inherited from interface ca.uhn.fhir.jpa.dao.IStorageResourceParser
toResource
-
Method Details
-
toResource
<R extends org.hl7.fhir.instance.model.api.IBaseResource> R toResource(Class<R> theResourceType, IBaseResourceEntity theEntity, Collection<BaseTag> theTagList, boolean theForHistoryOperation) Convert a storage entity into a FHIR resource model instance. This method may return null if the entity is not completely flushed, including the entities history entries. -
populateResourceMetadata
<R extends org.hl7.fhir.instance.model.api.IBaseResource> R populateResourceMetadata(IBaseResourceEntity theEntitySource, boolean theForHistoryOperation, @Nullable Collection<? extends BaseTag> tagList, long theVersion, R theResourceTarget) Populate the metadata (Resource.meta.*) from a storage entity and other related objects pulled from the database -
updateResourceMetadata
void updateResourceMetadata(IBaseResourceEntity theEntitySource, org.hl7.fhir.instance.model.api.IBaseResource theResourceTarget) Populates a resource model object's metadata (Resource.meta.*) based on the values from a storage entity.- Parameters:
theEntitySource
- The sourcetheResourceTarget
- The target
-