- All Implemented Interfaces:
Serializable,Comparable<ListCacheMode>,Constable
Controls how inner object deduplication works in the context of lists and searching.
e.g. if two Items have the same ClassJobCategory, then instead of keeping two objects with identical contents
in memory, both Items can simply point to the same ClassJobCategory instance. For single-object requests, the "scope"
of deduplication is that single request. For lists/searches, the behavior can be configured, as if it is not
expected that there will be very many duplicates, the caching may not be helpful.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo caching at all.Cache context per item - same as if the items were retrieved individually.Cache context per page of items.One cache context for the whole list/search. -
Method Summary
Modifier and TypeMethodDescriptionstatic ListCacheModeReturns the enum constant of this class with the specified name.static ListCacheMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
No caching at all. -
PerItem
Cache context per item - same as if the items were retrieved individually. -
PerPage
Cache context per page of items. -
WholeQuery
One cache context for the whole list/search.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-