org.drizzle.jdbc.internal.mysql
Enum MySQLServerCapabilities

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

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

Represents what the server is capable of

User: marcuse Date: Feb 27, 2009 Time: 9:01:29 PM


Enum Constant Summary
CLIENT_INTERACTIVE
           
CLIENT_PROTOCOL_41
           
COMPRESS
           
CONNECT_WITH_DB
           
DRIZZLE_CAPABILITIES_ADMIN
           
FOUND_ROWS
           
IGNORE_SIGPIPE
           
IGNORE_SPACE
           
LOCAL_FILES
           
LONG_FLAG
           
LONG_PASSWORD
           
MULTI_RESULTS
           
MULTI_STATEMENTS
           
NO_SCHEMA
           
ODBC
           
RESERVED
           
SECURE_CONNECTION
           
SSL
           
TRANSACTIONS
           
 
Method Summary
static int fromSet(java.util.Set<MySQLServerCapabilities> capabilities)
          creates a bitmasked short from an enum set
 int getBitmapFlag()
          the raw bit map flag from the server
static java.util.Set<MySQLServerCapabilities> getServerCapabilitiesSet(short i)
          creates an enum set of the server capabilities represented by i
static MySQLServerCapabilities valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MySQLServerCapabilities[] 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

LONG_PASSWORD

public static final MySQLServerCapabilities LONG_PASSWORD

FOUND_ROWS

public static final MySQLServerCapabilities FOUND_ROWS

LONG_FLAG

public static final MySQLServerCapabilities LONG_FLAG

CONNECT_WITH_DB

public static final MySQLServerCapabilities CONNECT_WITH_DB

NO_SCHEMA

public static final MySQLServerCapabilities NO_SCHEMA

COMPRESS

public static final MySQLServerCapabilities COMPRESS

ODBC

public static final MySQLServerCapabilities ODBC

LOCAL_FILES

public static final MySQLServerCapabilities LOCAL_FILES

IGNORE_SPACE

public static final MySQLServerCapabilities IGNORE_SPACE

CLIENT_PROTOCOL_41

public static final MySQLServerCapabilities CLIENT_PROTOCOL_41

CLIENT_INTERACTIVE

public static final MySQLServerCapabilities CLIENT_INTERACTIVE

SSL

public static final MySQLServerCapabilities SSL

IGNORE_SIGPIPE

public static final MySQLServerCapabilities IGNORE_SIGPIPE

TRANSACTIONS

public static final MySQLServerCapabilities TRANSACTIONS

RESERVED

public static final MySQLServerCapabilities RESERVED

SECURE_CONNECTION

public static final MySQLServerCapabilities SECURE_CONNECTION

MULTI_STATEMENTS

public static final MySQLServerCapabilities MULTI_STATEMENTS

MULTI_RESULTS

public static final MySQLServerCapabilities MULTI_RESULTS

DRIZZLE_CAPABILITIES_ADMIN

public static final MySQLServerCapabilities DRIZZLE_CAPABILITIES_ADMIN
Method Detail

values

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

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

valueOf

public static MySQLServerCapabilities 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

getServerCapabilitiesSet

public static java.util.Set<MySQLServerCapabilities> getServerCapabilitiesSet(short i)
creates an enum set of the server capabilities represented by i

Parameters:
i - the value from the server
Returns:
an enum set containing the flags in i

getBitmapFlag

public int getBitmapFlag()
the raw bit map flag from the server

Returns:
the raw map flag

fromSet

public static int fromSet(java.util.Set<MySQLServerCapabilities> capabilities)
creates a bitmasked short from an enum set

Parameters:
capabilities -
Returns:


Copyright © 2012. All Rights Reserved.