Package com.google.cloud.spanner
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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static Type.Code
valueOf(String name)
Returns the enum constant of this type with the specified name.static Type.Code[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static Type.Code[] 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 (Type.Code c : Type.Code.values()) System.out.println(c);
- 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 nameNullPointerException
- if the argument is null
-
-