Package ca.uhn.fhir.jpa.api.dao
Interface IFhirSystemDao<T,MT>
- Type Parameters:
T
- The bundle typeMT
- The Meta datatype type
- All Superinterfaces:
IDao
Note that this interface is not considered a stable interface. While it is possible to build applications
that use it directly, please be aware that we may modify methods, add methods, or even remove methods from
time to time, even within minor point releases.
-
Field Summary
Fields inherited from interface ca.uhn.fhir.jpa.api.dao.IDao
CURRENTLY_REINDEXING, RESOURCE_PID, RESOURCE_PID_KEY
-
Method Summary
Modifier and TypeMethodDescriptionexpunge
(ExpungeOptions theExpungeOptions, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Returns a cached count of resources using a cache that regularly refreshes in the background.ca.uhn.fhir.rest.api.server.IBundleProvider
history
(Date theDate, Date theUntil, Integer theOffset, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) metaGetOperation
(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Not supported for DSTU1default <P extends ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId>
voidpreFetchResources
(List<P> theResolvedIds, boolean thePreFetchIndexes) Preload resources from the database in batch.org.hl7.fhir.instance.model.api.IBaseBundle
processMessage
(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IBaseBundle theMessage) Implementations may implement this method to implement the $process-message operationtransaction
(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, T theResources) Executes a FHIR transaction using a new database transaction.default T
transactionNested
(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, T theResources) Executes a FHIR transaction nested inside the current database transaction.Methods inherited from interface ca.uhn.fhir.jpa.api.dao.IDao
getContext
-
Method Details
-
expunge
ExpungeOutcome expunge(ExpungeOptions theExpungeOptions, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) -
getResourceCounts
-
getResourceCountsFromCache
Returns a cached count of resources using a cache that regularly refreshes in the background. This method will never block, and may return null if nothing is in the cache. -
history
-
metaGetOperation
Not supported for DSTU1- Parameters:
theRequestDetails
- TODO
-
processMessage
org.hl7.fhir.instance.model.api.IBaseBundle processMessage(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IBaseBundle theMessage) Implementations may implement this method to implement the $process-message operation -
transaction
Executes a FHIR transaction using a new database transaction. This method must not be called from within a DB transaction. -
transactionNested
default T transactionNested(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, T theResources) Executes a FHIR transaction nested inside the current database transaction. This form of the transaction processor can handle write operations only (no reads) -
preFetchResources
default <P extends ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId> void preFetchResources(List<P> theResolvedIds, boolean thePreFetchIndexes) Preload resources from the database in batch. This method is purely a performance optimization and must be purely idempotent.- Parameters:
thePreFetchIndexes
- Should resource indexes be loaded
-