com.sun.enterprise.container.common.impl
Enum QueryWrapper.QueryType

java.lang.Object
  extended by java.lang.Enum<QueryWrapper.QueryType>
      extended by com.sun.enterprise.container.common.impl.QueryWrapper.QueryType
All Implemented Interfaces:
Serializable, Comparable<QueryWrapper.QueryType>
Enclosing class:
QueryWrapper

protected static enum QueryWrapper.QueryType
extends Enum<QueryWrapper.QueryType>


Enum Constant Summary
EJBQL
           
NAMED
           
NATIVE
           
TYPED_CRITERIA
           
TYPED_EJBQL
           
TYPED_NAMED
           
 
Method Summary
static QueryWrapper.QueryType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static QueryWrapper.QueryType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EJBQL

public static final QueryWrapper.QueryType EJBQL

TYPED_EJBQL

public static final QueryWrapper.QueryType TYPED_EJBQL

NAMED

public static final QueryWrapper.QueryType NAMED

TYPED_NAMED

public static final QueryWrapper.QueryType TYPED_NAMED

TYPED_CRITERIA

public static final QueryWrapper.QueryType TYPED_CRITERIA

NATIVE

public static final QueryWrapper.QueryType NATIVE
Method Detail

values

public static QueryWrapper.QueryType[] 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 (QueryWrapper.QueryType c : QueryWrapper.QueryType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static QueryWrapper.QueryType 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 © 2012 GlassFish Community. All Rights Reserved.