public static class AttributeTrail.EmptyTrail extends Object implements AttributeTrail
AttributeTrail.EmptyTrail
EMPTY
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()
AttributeTrail
Returns 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)
AttributeTrail
getAdditionalItemDependencies
in interface AttributeTrail
row
- row ID for which the trail is retrievedpublic boolean isCacheable(Long row)
AttributeTrail
false
is returned only when the row
has been mapped to another row, and so correct invalidation according to forest updates is impossibleisCacheable
in interface AttributeTrail
Copyright © 2017 ALM Works. All Rights Reserved.