com.alibaba.druid.sql.dialect.mysql.ast.statement
Enum MySqlShowProfileStatement.Type

java.lang.Object
  extended by java.lang.Enum<MySqlShowProfileStatement.Type>
      extended by com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlShowProfileStatement.Type
All Implemented Interfaces:
Serializable, Comparable<MySqlShowProfileStatement.Type>
Enclosing class:
MySqlShowProfileStatement

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


Enum Constant Summary
ALL
           
BLOCK_IO
           
CONTEXT_SWITCHES
           
CPU
           
IPC
           
MEMORY
           
PAGE_FAULTS
           
SOURCE
           
SWAPS
           
 
Field Summary
 String name
           
 
Method Summary
static MySqlShowProfileStatement.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MySqlShowProfileStatement.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

ALL

public static final MySqlShowProfileStatement.Type ALL

BLOCK_IO

public static final MySqlShowProfileStatement.Type BLOCK_IO

CONTEXT_SWITCHES

public static final MySqlShowProfileStatement.Type CONTEXT_SWITCHES

CPU

public static final MySqlShowProfileStatement.Type CPU

IPC

public static final MySqlShowProfileStatement.Type IPC

MEMORY

public static final MySqlShowProfileStatement.Type MEMORY

PAGE_FAULTS

public static final MySqlShowProfileStatement.Type PAGE_FAULTS

SOURCE

public static final MySqlShowProfileStatement.Type SOURCE

SWAPS

public static final MySqlShowProfileStatement.Type SWAPS
Field Detail

name

public final String name
Method Detail

values

public static MySqlShowProfileStatement.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 (MySqlShowProfileStatement.Type c : MySqlShowProfileStatement.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 MySqlShowProfileStatement.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 © 2012 Alibaba Group. All Rights Reserved.