![](/hapi-fhir/images/logos/raccoon-forwards.png)
Package ca.uhn.fhir.jpa.model.listener
Class IndexStorageOptimizationListener
java.lang.Object
ca.uhn.fhir.jpa.model.listener.IndexStorageOptimizationListener
Sets
SP_NAME, RES_TYPE, SP_UPDATED
column values to null for all HFJ_SPIDX tables
if storage setting StorageSettings.isIndexStorageOptimized()
is enabled.
Using EntityListener to change HFJ_SPIDX column values right before insert/update to database.
As SP_NAME, RES_TYPE
values could still be used after merge/persist to database, we are restoring
them from HASH_IDENTITY
value.
StorageSettings.setIndexStorageOptimized(boolean)
-
Constructor Summary
ConstructorsConstructorDescriptionIndexStorageOptimizationListener
(StorageSettings theStorageSettings, org.springframework.context.ApplicationContext theApplicationContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
optimizeSearchParams
(Object theEntity) void
restoreSearchParams
(Object theEntity)
-
Constructor Details
-
IndexStorageOptimizationListener
public IndexStorageOptimizationListener(@Autowired StorageSettings theStorageSettings, @Autowired org.springframework.context.ApplicationContext theApplicationContext)
-
-
Method Details
-
optimizeSearchParams
-
restoreSearchParams
-