Package com.ibm.fhir.persistence.jdbc
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 INameIdCache<Integer>
getParameterNameCache()
Getter for the cache of parameter namesICommonTokenValuesCache
getResourceReferenceCache()
Getter for the common token values cacheINameIdCache<Integer>
getResourceTypeCache()
Getter for the cache of resource types used to look up resource type idboolean
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:
-
getResourceReferenceCache
ICommonTokenValuesCache getResourceReferenceCache()
Getter for the common token values cache- Returns:
-
getResourceTypeCache
INameIdCache<Integer> getResourceTypeCache()
Getter for the cache of resource types used to look up resource type id- Returns:
-
getParameterNameCache
INameIdCache<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
-
-