org.mariadb.jdbc.internal.util
Enum SqlStates

java.lang.Object
  extended by java.lang.Enum<SqlStates>
      extended by org.mariadb.jdbc.internal.util.SqlStates
All Implemented Interfaces:
Serializable, Comparable<SqlStates>

public enum SqlStates
extends Enum<SqlStates>


Enum Constant Summary
CARDINALITY_VIOLATION
           
CONNECTION_EXCEPTION
           
CONSTRAINT_VIOLATION
           
DATA_EXCEPTION
           
DISTRIBUTED_TRANSACTION_ERROR
           
FEATURE_NOT_SUPPORTED
           
INTERRUPTED_EXCEPTION
           
INVALID_AUTHORIZATION
           
INVALID_CATALOG
           
INVALID_CURSOR_STATE
           
INVALID_TRANSACTION_STATE
           
NO_DATA
           
SQL_FUNCTION_EXCEPTION
           
SYNTAX_ERROR_ACCESS_RULE
           
TIMEOUT_EXCEPTION
           
TRANSACTION_ROLLBACK
           
UNDEFINED_SQLSTATE
           
WARNING
           
 
Method Summary
static SqlStates fromString(String group)
          Get sqlState from group.
 String getSqlState()
           
static SqlStates valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SqlStates[] 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

WARNING

public static final SqlStates WARNING

NO_DATA

public static final SqlStates NO_DATA

CONNECTION_EXCEPTION

public static final SqlStates CONNECTION_EXCEPTION

FEATURE_NOT_SUPPORTED

public static final SqlStates FEATURE_NOT_SUPPORTED

CARDINALITY_VIOLATION

public static final SqlStates CARDINALITY_VIOLATION

DATA_EXCEPTION

public static final SqlStates DATA_EXCEPTION

CONSTRAINT_VIOLATION

public static final SqlStates CONSTRAINT_VIOLATION

INVALID_CURSOR_STATE

public static final SqlStates INVALID_CURSOR_STATE

INVALID_TRANSACTION_STATE

public static final SqlStates INVALID_TRANSACTION_STATE

INVALID_AUTHORIZATION

public static final SqlStates INVALID_AUTHORIZATION

SQL_FUNCTION_EXCEPTION

public static final SqlStates SQL_FUNCTION_EXCEPTION

TRANSACTION_ROLLBACK

public static final SqlStates TRANSACTION_ROLLBACK

SYNTAX_ERROR_ACCESS_RULE

public static final SqlStates SYNTAX_ERROR_ACCESS_RULE

INVALID_CATALOG

public static final SqlStates INVALID_CATALOG

INTERRUPTED_EXCEPTION

public static final SqlStates INTERRUPTED_EXCEPTION

UNDEFINED_SQLSTATE

public static final SqlStates UNDEFINED_SQLSTATE

TIMEOUT_EXCEPTION

public static final SqlStates TIMEOUT_EXCEPTION

DISTRIBUTED_TRANSACTION_ERROR

public static final SqlStates DISTRIBUTED_TRANSACTION_ERROR
Method Detail

values

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

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

valueOf

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

fromString

public static SqlStates fromString(String group)
Get sqlState from group.

Parameters:
group - group
Returns:
sqlState

getSqlState

public String getSqlState()


Copyright © 2017. All rights reserved.