Enum Class CountRequest
- All Implemented Interfaces:
Serializable,Comparable<CountRequest>,Constable
What a caller asks
BeanQuery.Builder.counts(CountRequest) to write onto a BeanQuery's
opts (design ยง5).
This is the builder-facing counterpart of the session-side CountPolicy: CountPolicy
decides whether a session honors a count request at all; CountRequest is what the request asks for.
Example:
BeanQuery
- Since:
- 10.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic CountRequestReturns the enum constant of this class with the specified name.static CountRequest[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Request no counts. Writing this removes thecountsopt if one was set. -
MATCHED
Request only the matched-row count (counts=matched). -
BOTH
Request both the total and matched counts (counts=both).
-
-
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
-