Enum JavaType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<JavaType>

    public enum JavaType
    extends java.lang.Enum<JavaType>
    Java types from java.sql.Types as enumeration
    • Enum Constant Detail

      • ARRAY

        public static final JavaType ARRAY
      • BIGINT

        public static final JavaType BIGINT
      • BINARY

        public static final JavaType BINARY
      • BLOB

        public static final JavaType BLOB
      • BOOLEAN

        public static final JavaType BOOLEAN
      • CHAR

        public static final JavaType CHAR
      • CLOB

        public static final JavaType CLOB
      • DATALINK

        public static final JavaType DATALINK
      • DATE

        public static final JavaType DATE
      • DECIMAL

        public static final JavaType DECIMAL
      • DISTINCT

        public static final JavaType DISTINCT
      • DOUBLE

        public static final JavaType DOUBLE
      • FLOAT

        public static final JavaType FLOAT
      • INTEGER

        public static final JavaType INTEGER
      • JAVA_OBJECT

        public static final JavaType JAVA_OBJECT
      • LONGVARBINARY

        public static final JavaType LONGVARBINARY
      • LONGVARCHAR

        public static final JavaType LONGVARCHAR
      • NULL

        public static final JavaType NULL
      • NUMERIC

        public static final JavaType NUMERIC
      • REAL

        public static final JavaType REAL
      • SMALLINT

        public static final JavaType SMALLINT
      • STRUCT

        public static final JavaType STRUCT
      • TIME

        public static final JavaType TIME
      • TIMESTAMP

        public static final JavaType TIMESTAMP
      • TINYINT

        public static final JavaType TINYINT
      • VARBINARY

        public static final JavaType VARBINARY
      • VARCHAR

        public static final JavaType VARCHAR
      • OTHER

        public static final JavaType OTHER
    • Method Detail

      • values

        public static JavaType[] 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 (JavaType c : JavaType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JavaType 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
      • getJavaType

        public int getJavaType()
      • getColumnPrecision

        public Precision getColumnPrecision()
      • getForInt

        public static JavaType getForInt​(int javaType)