Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
CountFlag |
|
| 1.0;1 |
1 | package org.kuali.rice.core.api.criteria; | |
2 | ||
3 | import javax.xml.bind.annotation.XmlEnum; | |
4 | import javax.xml.bind.annotation.XmlEnumValue; | |
5 | import javax.xml.bind.annotation.XmlType; | |
6 | ||
7 | /** | |
8 | * Defines possible directives for how a query is requested to produce count values in it's results. | |
9 | * | |
10 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
11 | * | |
12 | */ | |
13 | 0 | @XmlType(name = "CountFlagType") |
14 | @XmlEnum(String.class) | |
15 | public enum CountFlag { | |
16 | ||
17 | /** | |
18 | * Indicates that no row count should be returned with the query results. | |
19 | */ | |
20 | 0 | @XmlEnumValue(value="NONE") NONE("NONE"), |
21 | ||
22 | /** | |
23 | * Indicates that the row count of the query should be returned with the query results. | |
24 | */ | |
25 | 0 | @XmlEnumValue(value="INCLUDE") INCLUDE("INCLUDE"), |
26 | ||
27 | /** | |
28 | * Indicates that *only* the row count should be returned with the query results. The | |
29 | * result should not include the actual rows returned from the query. | |
30 | */ | |
31 | 0 | @XmlEnumValue(value="ONLY") ONLY("ONLY"); |
32 | ||
33 | private final String flag; | |
34 | ||
35 | 0 | private CountFlag(final String flag) { |
36 | 0 | this.flag = flag; |
37 | 0 | } |
38 | ||
39 | /** | |
40 | * Returns the value of the count flag. | |
41 | * | |
42 | * @return the flag | |
43 | */ | |
44 | public String getFlag() { | |
45 | 0 | return flag; |
46 | } | |
47 | ||
48 | } |