public enum SpecialQueryType extends Enum<SpecialQueryType>
Enum Constant and Description |
---|
ALL |
ANY |
COUNT
Get count of items for the query
|
FIRST
Get only the first item
|
FIRST_OR_DEFAULT
Get only the first item (or null)
|
LONG_COUNT
Get count of items for the query as an Int64
|
NONE |
SINGLE
Get only the first item (or throw if there are more than one)
|
SINGLE_OR_DEFAULT
Get only the first item (or throw if there are more than one) or null if empty
|
Modifier and Type | Method and Description |
---|---|
static SpecialQueryType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpecialQueryType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpecialQueryType NONE
public static final SpecialQueryType ALL
public static final SpecialQueryType ANY
public static final SpecialQueryType COUNT
public static final SpecialQueryType LONG_COUNT
public static final SpecialQueryType FIRST
public static final SpecialQueryType FIRST_OR_DEFAULT
public static final SpecialQueryType SINGLE
public static final SpecialQueryType SINGLE_OR_DEFAULT
public static SpecialQueryType[] values()
for (SpecialQueryType c : SpecialQueryType.values()) System.out.println(c);
public static SpecialQueryType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016. All Rights Reserved.