Package ca.uhn.fhir.jpa.dao
Class JpaStorageResourceParser
java.lang.Object
ca.uhn.fhir.jpa.dao.JpaStorageResourceParser
- All Implemented Interfaces:
IJpaStorageResourceParser
,IStorageResourceParser
-
Field Summary
-
Constructor Summary
-
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 databaseorg.hl7.fhir.instance.model.api.IBaseResource
toResource
(IBasePersistedResource theEntity, boolean theForHistoryOperation) <R extends org.hl7.fhir.instance.model.api.IBaseResource>
RtoResource
(Class<R> theResourceType, IBaseResourceEntity theEntity, Collection<ResourceTag> 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.
-
Field Details
-
LENIENT_ERROR_HANDLER
-
-
Constructor Details
-
JpaStorageResourceParser
public JpaStorageResourceParser()
-
-
Method Details
-
toResource
public org.hl7.fhir.instance.model.api.IBaseResource toResource(IBasePersistedResource theEntity, boolean theForHistoryOperation) - Specified by:
toResource
in interfaceIStorageResourceParser
-
toResource
public <R extends org.hl7.fhir.instance.model.api.IBaseResource> R toResource(Class<R> theResourceType, IBaseResourceEntity theEntity, Collection<ResourceTag> theTagList, boolean theForHistoryOperation) Description copied from interface:IJpaStorageResourceParser
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.- Specified by:
toResource
in interfaceIJpaStorageResourceParser
-
populateResourceMetadata
public <R extends org.hl7.fhir.instance.model.api.IBaseResource> R populateResourceMetadata(IBaseResourceEntity theEntitySource, boolean theForHistoryOperation, @Nullable Collection<? extends BaseTag> tagList, long theVersion, R theResourceTarget) Description copied from interface:IJpaStorageResourceParser
Populate the metadata (Resource.meta.*) from a storage entity and other related objects pulled from the database- Specified by:
populateResourceMetadata
in interfaceIJpaStorageResourceParser
-
updateResourceMetadata
public void updateResourceMetadata(IBaseResourceEntity theEntitySource, org.hl7.fhir.instance.model.api.IBaseResource theResourceTarget) Description copied from interface:IJpaStorageResourceParser
Populates a resource model object's metadata (Resource.meta.*) based on the values from a storage entity.- Specified by:
updateResourceMetadata
in interfaceIJpaStorageResourceParser
- Parameters:
theEntitySource
- The sourcetheResourceTarget
- The target
-