Enum Type.Code

java.lang.Object
java.lang.Enum<Type.Code>
com.google.cloud.spanner.Type.Code
All Implemented Interfaces:
Serializable, Comparable<Type.Code>
Enclosing class:
Type

public static enum Type.Code extends Enum<Type.Code>
Enumerates the categories of types.
  • Enum Constant Details

    • UNRECOGNIZED

      public static final Type.Code UNRECOGNIZED
    • BOOL

      public static final Type.Code BOOL
    • INT64

      public static final Type.Code INT64
    • NUMERIC

      public static final Type.Code NUMERIC
    • PG_NUMERIC

      public static final Type.Code PG_NUMERIC
    • FLOAT64

      public static final Type.Code FLOAT64
    • STRING

      public static final Type.Code STRING
    • JSON

      public static final Type.Code JSON
    • PG_JSONB

      public static final Type.Code PG_JSONB
    • BYTES

      public static final Type.Code BYTES
    • TIMESTAMP

      public static final Type.Code TIMESTAMP
    • DATE

      public static final Type.Code DATE
    • ARRAY

      public static final Type.Code ARRAY
    • STRUCT

      public static final Type.Code STRUCT
  • Method Details

    • values

      public static Type.Code[] 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 Type.Code 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Type.Code>