Interface FHIRPersistenceJDBCCache
-
- All Known Implementing Classes:
FHIRPersistenceJDBCCacheImpl
public interface FHIRPersistenceJDBCCache
Manages caches separated by tenant
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearNeedToPrefill()
Clear the needToPrefill flag - call after the prefill has been doneICommonValuesCache
getCommonValuesCache()
Getter for the common values cacheILogicalResourceIdentCache
getLogicalResourceIdentCache()
Getter for the cache handling lookups for logical_resource_id valuesINameIdCache<java.lang.Integer>
getParameterNameCache()
Getter for the cache of parameter namesINameIdCache<java.lang.Integer>
getResourceTypeCache()
Getter for the cache of resource types used to look up resource type idIIdNameCache<java.lang.Integer>
getResourceTypeNameCache()
Getter for the cache of resource type ids used to look up resource type nameboolean
needToPrefill()
Returns true if the caller should attempt to prefill the caches.void
transactionCommitted()
Tell any caches that the transaction on the current thread has just committedvoid
transactionRolledBack()
The transaction on the current thread was rolled back, so throw away anything held in thread-local caches
-
-
-
Method Detail
-
needToPrefill
boolean needToPrefill()
Returns true if the caller should attempt to prefill the caches. Prefilling must only be done before any new records are inserted to ensure the shared caches contain only data which has been previously committed to the database.- Returns:
-
clearNeedToPrefill
void clearNeedToPrefill()
Clear the needToPrefill flag - call after the prefill has been done
-
getCommonValuesCache
ICommonValuesCache getCommonValuesCache()
Getter for the common values cache- Returns:
-
getLogicalResourceIdentCache
ILogicalResourceIdentCache getLogicalResourceIdentCache()
Getter for the cache handling lookups for logical_resource_id values- Returns:
-
getResourceTypeCache
INameIdCache<java.lang.Integer> getResourceTypeCache()
Getter for the cache of resource types used to look up resource type id- Returns:
-
getResourceTypeNameCache
IIdNameCache<java.lang.Integer> getResourceTypeNameCache()
Getter for the cache of resource type ids used to look up resource type name- Returns:
-
getParameterNameCache
INameIdCache<java.lang.Integer> getParameterNameCache()
Getter for the cache of parameter names- Returns:
-
transactionCommitted
void transactionCommitted()
Tell any caches that the transaction on the current thread has just committed
-
transactionRolledBack
void transactionRolledBack()
The transaction on the current thread was rolled back, so throw away anything held in thread-local caches
-
-