Package io.ebeaninternal.api
Enum SpiQuery.Type
- java.lang.Object
-
- java.lang.Enum<SpiQuery.Type>
-
- io.ebeaninternal.api.SpiQuery.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<SpiQuery.Type>
public static enum SpiQuery.Type extends Enum<SpiQuery.Type>
The type of query result.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTRIBUTE
Find single attribute.BEAN
Find by Id or unique returning a single bean.COUNT
Find rowCount.DELETE
Delete query.ID_LIST
Find the Id's.ITERATE
Find iterate type query - findEach(), findIterate() etc.LIST
Find returning a List.MAP
Find returning a Map.SET
Find returning a Set.SUBQUERY
A subquery used as part of a where clause.UPDATE
Update query.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isUpdate()
Return true if this is an Update or Delete query (not read only).String
label()
String
profileEventId()
static SpiQuery.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static SpiQuery.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BEAN
public static final SpiQuery.Type BEAN
Find by Id or unique returning a single bean.
-
LIST
public static final SpiQuery.Type LIST
Find returning a List.
-
SET
public static final SpiQuery.Type SET
Find returning a Set.
-
MAP
public static final SpiQuery.Type MAP
Find returning a Map.
-
ITERATE
public static final SpiQuery.Type ITERATE
Find iterate type query - findEach(), findIterate() etc.
-
ID_LIST
public static final SpiQuery.Type ID_LIST
Find the Id's.
-
ATTRIBUTE
public static final SpiQuery.Type ATTRIBUTE
Find single attribute.
-
COUNT
public static final SpiQuery.Type COUNT
Find rowCount.
-
SUBQUERY
public static final SpiQuery.Type SUBQUERY
A subquery used as part of a where clause.
-
DELETE
public static final SpiQuery.Type DELETE
Delete query.
-
UPDATE
public static final SpiQuery.Type UPDATE
Update query.
-
-
Method Detail
-
values
public static SpiQuery.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SpiQuery.Type c : SpiQuery.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SpiQuery.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
isUpdate
public boolean isUpdate()
Return true if this is an Update or Delete query (not read only).
-
profileEventId
public String profileEventId()
-
-