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 void
clearNeedToPrefill()
Clear the needToPrefill flag - call after the prefill has been doneINameIdCache<java.lang.Integer>
getParameterNameCache()
Getter for the cache of parameter namesICommonTokenValuesCache
getResourceReferenceCache()
Getter for the common token values cacheINameIdCache<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
-
getResourceReferenceCache
ICommonTokenValuesCache getResourceReferenceCache()
Getter for the common token values cache- 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
-
-