Enum Class SQLStateType

java.lang.Object
java.lang.Enum<SQLStateType>
org.hibernate.engine.jdbc.env.spi.SQLStateType
All Implemented Interfaces:
Serializable, Comparable<SQLStateType>, Constable

public enum SQLStateType extends Enum<SQLStateType>
Enum interpretation of the valid values from DatabaseMetaData.getSQLStateType()
Author:
Steve Ebersole
  • Enum Constant Details

    • XOpen

      public static final SQLStateType XOpen
      The reported codes follow the X/Open spec
    • SQL99

      public static final SQLStateType SQL99
      The reported codes follow the SQL spec
    • UNKNOWN

      public static final SQLStateType UNKNOWN
      It is unknown. Might follow another spec completely, or be a mixture.
  • Method Details

    • values

      public static SQLStateType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SQLStateType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • interpretReportedSQLStateType

      public static SQLStateType interpretReportedSQLStateType(int sqlStateType)