public static class AttributeTrail.EmptyTrail extends Object implements AttributeTrail
AttributeTrail.EmptyTrailEMPTY| Constructor and Description |
|---|
EmptyTrail() |
| Modifier and Type | Method and Description |
|---|---|
TrailItemSet |
getAdditionalItemDependencies(Long row)
Returns a set of additional items that need to be tracked.
|
Set<ForestDependencyType> |
getTrailMode()
Returns all types of in-forest dependencies that were used to calculate this value.
|
boolean |
isCacheable(Long row)
Returns true if the value for the row can be reliably cached and invalidated, by observing forest changes
(according to trail mode), and item changes (according to row's item and additional dependencies).
|
@NotNull public Set<ForestDependencyType> getTrailMode()
AttributeTrailReturns all types of in-forest dependencies that were used to calculate this value.
An attribute value may be calculated using only the row requested (ForestDependencyType.INDEPENDENT),
or all sub-rows in the forest (ForestDependencyType.AGGREGATE), or in "top-down" manner
(ForestDependencyType.PROPAGATE), or a combination of these calculations.
Depending on the type, forest change and other items need to be
tracked for correct invalidation.
getTrailMode in interface AttributeTrail@Nullable public TrailItemSet getAdditionalItemDependencies(Long row)
AttributeTrailgetAdditionalItemDependencies in interface AttributeTrailrow - row ID for which the trail is retrievedpublic boolean isCacheable(Long row)
AttributeTrailfalse is returned only when the row
has been mapped to another row, and so correct invalidation according to forest updates is impossibleisCacheable in interface AttributeTrailCopyright © 2019 ALM Works. All Rights Reserved.