org.drizzle.jdbc.internal.common
Enum ServerStatus

java.lang.Object
  extended by java.lang.Enum<ServerStatus>
      extended by org.drizzle.jdbc.internal.common.ServerStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ServerStatus>

public enum ServerStatus
extends java.lang.Enum<ServerStatus>

Represents the server status

User: marcuse Date: Feb 27, 2009 Time: 8:36:46 PM


Enum Constant Summary
AUTOCOMMIT
           
CURSOR_EXISTS
           
DB_DROPPED
           
IN_TRANSACTION
           
LAST_ROW_SENT
           
MORE_RESULTS_EXISTS
           
NO_BACKSLASH_ESCAPES
           
QUERY_NO_GOOD_INDEX_USED
           
QUERY_NO_INDEX_USED
           
QUERY_WAS_SLOW
           
 
Method Summary
 short getBitmapFlag()
          returns the bit map flag
static java.util.Set<ServerStatus> getServerStatusSet(short i)
          creates an enum set of the bitmasked field i
static ServerStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ServerStatus[] 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

IN_TRANSACTION

public static final ServerStatus IN_TRANSACTION

AUTOCOMMIT

public static final ServerStatus AUTOCOMMIT

MORE_RESULTS_EXISTS

public static final ServerStatus MORE_RESULTS_EXISTS

QUERY_NO_GOOD_INDEX_USED

public static final ServerStatus QUERY_NO_GOOD_INDEX_USED

QUERY_NO_INDEX_USED

public static final ServerStatus QUERY_NO_INDEX_USED

CURSOR_EXISTS

public static final ServerStatus CURSOR_EXISTS

LAST_ROW_SENT

public static final ServerStatus LAST_ROW_SENT

DB_DROPPED

public static final ServerStatus DB_DROPPED

NO_BACKSLASH_ESCAPES

public static final ServerStatus NO_BACKSLASH_ESCAPES

QUERY_WAS_SLOW

public static final ServerStatus QUERY_WAS_SLOW
Method Detail

values

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

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

valueOf

public static ServerStatus valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getBitmapFlag

public short getBitmapFlag()
returns the bit map flag

Returns:
the bitmap flag

getServerStatusSet

public static java.util.Set<ServerStatus> getServerStatusSet(short i)
creates an enum set of the bitmasked field i

Parameters:
i - the bitmasked field
Returns:
an enum set with the flags defined by i


Copyright © 2012. All Rights Reserved.