com.avaje.ebean
Enum Query.Type

java.lang.Object
  extended by java.lang.Enum<Query.Type>
      extended by com.avaje.ebean.Query.Type
All Implemented Interfaces:
Serializable, Comparable<Query.Type>
Enclosing interface:
Query<T>

public static enum Query.Type
extends Enum<Query.Type>

The type of query result.


Enum Constant Summary
BEAN
          Find by Id or unique returning a single bean.
ID_LIST
          Find the Id's.
LIST
          Find returning a List.
MAP
          Find returning a Map.
ROWCOUNT
          Find rowCount.
SET
          Find returning a Set.
SUBQUERY
          A subquery used as part of a where clause.
 
Method Summary
static Query.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Query.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BEAN

public static final Query.Type BEAN
Find by Id or unique returning a single bean.


LIST

public static final Query.Type LIST
Find returning a List.


SET

public static final Query.Type SET
Find returning a Set.


MAP

public static final Query.Type MAP
Find returning a Map.


ID_LIST

public static final Query.Type ID_LIST
Find the Id's.


ROWCOUNT

public static final Query.Type ROWCOUNT
Find rowCount.


SUBQUERY

public static final Query.Type SUBQUERY
A subquery used as part of a where clause.

Method Detail

values

public static Query.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 (Query.Type c : Query.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 Query.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 name
NullPointerException - if the argument is null


Copyright © 2010. All Rights Reserved.