Enum LiteralCapability

  • All Implemented Interfaces:
    Serializable, Comparable<LiteralCapability>

    public enum LiteralCapability
    extends Enum<LiteralCapability>
    This is an enumeration of the capabilities for literals supported by the EXASOL Virtual Schema Framework.

    E.g. to execute a system "SELECT * FROM t WHERE username='alice'" your data source needs the STRING capability.

    • Enum Constant Detail

      • NULL

        public static final LiteralCapability NULL
        The literal for null values.

        Example in EXASOL syntax: NULL

      • BOOL

        public static final LiteralCapability BOOL
        The literal for boolean values.

        Example in EXASOL syntax: TRUE

      • DATE

        public static final LiteralCapability DATE
        The literal for date values.

        Example in EXASOL syntax: DATE '2000-01-28'

      • TIMESTAMP

        public static final LiteralCapability TIMESTAMP
        The literal for timestamp values.

        Example in EXASOL syntax: TIMESTAMP '2000-01-28 12:30:01.001'

      • TIMESTAMP_UTC

        public static final LiteralCapability TIMESTAMP_UTC
        The literal for timestamp values. There is no direct literal for timestamps, but it can be created via casting.

        Example in EXASOL syntax: CAST(TIMESTAMP '2000-01-28 12:30:01.001' AS TIMESTAMP WITH LOCAL TIME ZONE)

      • DOUBLE

        public static final LiteralCapability DOUBLE
        The literal for double values.

        Example in EXASOL syntax: 100.23

      • EXACTNUMERIC

        public static final LiteralCapability EXACTNUMERIC
        The literal for exact numeric values.

        Example in EXASOL syntax: 123

      • STRING

        public static final LiteralCapability STRING
        The literal for string values.

        Example in EXASOL syntax: 'alice'

      • INTERVAL

        public static final LiteralCapability INTERVAL
        The literal for interval values.

        Example in EXASOL syntax: INTERVAL '5' MONTH

    • Method Detail

      • values

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

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