Enum JdbcType

java.lang.Object
java.lang.Enum<JdbcType>
org.datanucleus.metadata.JdbcType
All Implemented Interfaces:
Serializable, Comparable<JdbcType>

public enum JdbcType extends Enum<JdbcType>
Representation of the jdbc-type of a column. Note that something similar to this is now present in JDK 1.8 so we could remove this in the future when that is the minimum JDK supported.
  • Enum Constant Details

    • ARRAY

      public static final JdbcType ARRAY
    • BIGINT

      public static final JdbcType BIGINT
    • BINARY

      public static final JdbcType BINARY
    • BIT

      public static final JdbcType BIT
    • BLOB

      public static final JdbcType BLOB
    • BOOLEAN

      public static final JdbcType BOOLEAN
    • CHAR

      public static final JdbcType CHAR
    • CLOB

      public static final JdbcType CLOB
    • DATE

      public static final JdbcType DATE
    • DECIMAL

      public static final JdbcType DECIMAL
    • DOUBLE

      public static final JdbcType DOUBLE
    • FLOAT

      public static final JdbcType FLOAT
    • INTEGER

      public static final JdbcType INTEGER
    • LONGNVARCHAR

      public static final JdbcType LONGNVARCHAR
    • LONGVARBINARY

      public static final JdbcType LONGVARBINARY
    • LONGVARCHAR

      public static final JdbcType LONGVARCHAR
    • NCHAR

      public static final JdbcType NCHAR
    • NCLOB

      public static final JdbcType NCLOB
    • NUMERIC

      public static final JdbcType NUMERIC
    • NVARCHAR

      public static final JdbcType NVARCHAR
    • OTHER

      public static final JdbcType OTHER
    • REAL

      public static final JdbcType REAL
    • REF_CURSOR

      public static final JdbcType REF_CURSOR
    • SMALLINT

      public static final JdbcType SMALLINT
    • SQLXML

      public static final JdbcType SQLXML
    • TIME

      public static final JdbcType TIME
    • TIME_WITH_TIMEZONE

      public static final JdbcType TIME_WITH_TIMEZONE
    • TIMESTAMP

      public static final JdbcType TIMESTAMP
    • TIMESTAMP_WITH_TIMEZONE

      public static final JdbcType TIMESTAMP_WITH_TIMEZONE
    • TINYINT

      public static final JdbcType TINYINT
    • VARBINARY

      public static final JdbcType VARBINARY
    • VARCHAR

      public static final JdbcType VARCHAR
    • XMLTYPE

      public static final JdbcType XMLTYPE
  • Field Details

    • value

      private int value
  • Constructor Details

    • JdbcType

      private JdbcType(int value)
  • Method Details

    • values

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

      public static JdbcType 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
    • getValue

      public int getValue()
    • getEnumByValue

      public static JdbcType getEnumByValue(int value)