Enum TypeTag

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

    public enum TypeTag
    extends java.lang.Enum<TypeTag>
    A SQL type tag.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static TypeTag valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static TypeTag[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • UNSUPPORTED

        public static final TypeTag UNSUPPORTED
        Unsupported type
      • BOOL

        public static final TypeTag BOOL
        Bool type
      • BIG_INT

        public static final TypeTag BIG_INT
        bigint type
      • SMALL_INT

        public static final TypeTag SMALL_INT
        smallint type
      • INT

        public static final TypeTag INT
        int type
      • NUMERIC

        public static final TypeTag NUMERIC
        numeric type
      • DOUBLE

        public static final TypeTag DOUBLE
        double type
      • OID

        public static final TypeTag OID
        OID type
      • BYTES

        public static final TypeTag BYTES
        bytes type
      • TEXT

        public static final TypeTag TEXT
        text type
      • VARCHAR

        public static final TypeTag VARCHAR
        varchar type
      • CHAR

        public static final TypeTag CHAR
        char type
      • JSON

        public static final TypeTag JSON
        json type
      • DATE

        public static final TypeTag DATE
        date type
      • INTERVAL

        public static final TypeTag INTERVAL
        interval type
      • TIME

        public static final TypeTag TIME
        time type
      • TIMESTAMP

        public static final TypeTag TIMESTAMP
        timestamp type
      • TIMESTAMP_TZ

        public static final TypeTag TIMESTAMP_TZ
        timestamptz type
      • GEOGRAPHY

        public static final TypeTag GEOGRAPHY
        geography type
      • FLOAT

        public static final TypeTag FLOAT
        float type
    • Method Detail

      • values

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

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