org.eigenbase.sql
Enum SqlStateCodes

java.lang.Object
  extended by java.lang.Enum<SqlStateCodes>
      extended by org.eigenbase.sql.SqlStateCodes
All Implemented Interfaces:
Serializable, Comparable<SqlStateCodes>

public enum SqlStateCodes
extends Enum<SqlStateCodes>

Contains Glossary.Sql2003 SQL state codes. Sql Sate codes are defined in

 @sql.2003 Part 2 Section 23.1

Since:
Mar 30, 2005
Version:
$Id: //open/dev/farrago/src/org/eigenbase/sql/SqlStateCodes.java#10 $
Author:
Wael Chatila

Enum Constant Summary
CardinalityViolation
           
NullValueNotAllowed
           
NumericValueOutOfRange
           
 
Field Summary
private  String msg
           
private  String stateClass
           
private  String stateSubClass
           
 
Method Summary
 String getState()
           
 String getStateClass()
           
 String getStateSubClass()
           
static SqlStateCodes valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SqlStateCodes[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CardinalityViolation

public static final SqlStateCodes CardinalityViolation

NullValueNotAllowed

public static final SqlStateCodes NullValueNotAllowed

NumericValueOutOfRange

public static final SqlStateCodes NumericValueOutOfRange
Field Detail

msg

private final String msg

stateClass

private final String stateClass

stateSubClass

private final String stateSubClass
Method Detail

values

public static final SqlStateCodes[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(SqlStateCodes c : SqlStateCodes.values())
        System.out.println(c);

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

valueOf

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

getStateClass

public String getStateClass()

getStateSubClass

public String getStateSubClass()

getState

public String getState()