Project

General

Profile

Actions

task #9678

closed

Remove Derived- and FieldUnitFacadeCacheStrategies

Added by Andreas Müller almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Highest
Category:
cdmlib
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
normal

Description

Cache strategies for FieldUnits and DerivedUnits are currently using the DerivedUnitFacadeCacheStrategy or DerivedUnitFacadeFieldUnitCacheStrategy.

This is problematic because

  1. these cache strategies are only available in cdmlib-service and therefore can be loaded only with workaround within the model classes.
  2. for units that have data that are against the facade contract an exception is thrown when trying to compute the titleCaches

We should implement cache strategies within cdmlib-model doing more or less the same as the facade cachestrategies. At some places the code can be much more simple then in the facade as the facade is intened to also be used for writing data which makes it much more complex.

This ticket is also a prerequisit for implementing the "identityCache" or "shortCache" for SpecimenOrObservationBase.


Related issues

Related to EDIT - feature request #5952: Second cache field for specimen (identityCache)ClosedAndreas Müller

Actions
Related to EDIT - feature request #5951: Add collector, field number and collection to specimen search labelNewKatja Luther

Actions
Related to EDIT - task #9679: Formatter and update script for SpecimenOrObservationBase short cacheNewAndreas Müller

Actions
Related to EDIT - bug #8517: SpecimenOrObservation: data from protected titleCache missig in portal pagesClosedAndreas Kohlbecker

Actions
Related to EDIT - feature request #5575: DNA Sample requires CacheStrategyClosedAndreas Müller

Actions
Related to EDIT - feature request #5573: Cache Strategy for Media Specimen requiredClosedAndreas Müller

Actions
Related to EDIT - bug #9683: Auto-initialize root beanClosedAndreas Müller

Actions
Related to EDIT - bug #7904: DerivedUnitFacadeFieldUnitCacheStrategy.getCollectorAndFieldNumber() creates temporary Team objects which can not be garbage collected. ClosedAndreas Müller

Actions
Related to EDIT - feature request #9894: Make primary collector editable for field unit ClosedKatja Luther

Actions
Related to EDIT - bug #9978: Change of CacheStrategy from DerivedUnitFacade to DerivedUnitDefaultCacheStrategy results in different caches for MediaSpecimenIn ProgressKatja Luther

Actions
Actions

Also available in: Atom PDF