public enum EdmType extends Enum<EdmType>
EdmType
enumeration includes a
parse(String)
method to convert EDM data type names to the enumeration type, and overrides the
toString()
method to produce an EDM data type name.
For more information about OData, see the Open Data Protocol website.
For an overview of the available EDM primitive data types and names, see the Primitive Data Types section of the OData Protocol Overview.
The Abstract Type System used to define the primitive types supported by OData is defined in detail in [MC-CSDL] (section 2.2.1).
Enum Constant and Description |
---|
BINARY
Edm.Binary Represents fixed- or variable-length binary data
|
BOOLEAN
Edm.Boolean Represents the mathematical concept of binary-valued logic
|
BYTE
Edm.Byte Represents a unsigned 8-bit integer value
|
DATE_TIME
Edm.DateTime Represents date and time with values ranging from 12:00:00 midnight, January 1,
1753 A.D.
|
DATE_TIME_OFFSET
Edm.DateTimeOffset Represents date and time as an Offset in minutes from GMT, with values
ranging from 12:00:00 midnight, January 1, 1753 A.D.
|
DECIMAL
Edm.Decimal Represents numeric values with fixed precision and scale.
|
DOUBLE
Edm.Double Represents a floating point number with 15 digits precision that can represent values
with approximate range of +/- 2.23e -308 through +/- 1.79e +308
|
GUID
Edm.Guid Represents a 16-byte (128-bit) unique identifier value
|
INT16
Edm.Int16 Represents a signed 16-bit integer value
|
INT32
Edm.Int32 Represents a signed 32-bit integer value
|
INT64
Edm.Int64 Represents a signed 64-bit integer value
|
NULL
Null Represents the absence of a value
|
SBYTE
Edm.SByte Represents a signed 8-bit integer value
|
SINGLE
Edm.Single Represents a floating point number with 7 digits precision that can represent values
with approximate range of +/- 1.18e -38 through +/- 3.40e +38
|
STRING
Edm.String Represents fixed- or variable-length character data
|
TIME
Edm.Time Represents the time of day with values ranging from 0:00:00.x to 23:59:59.y, where x
and y depend upon the precision
|
Modifier and Type | Method and Description |
---|---|
static EdmType |
parse(String value)
Parses an EDM data type name and return the matching
EdmType enumeration value. |
String |
toString()
Returns the name of the EDM data type corresponding to the enumeration value.
|
static EdmType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EdmType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EdmType NULL
public static final EdmType BINARY
public static final EdmType BOOLEAN
public static final EdmType BYTE
public static final EdmType DATE_TIME
public static final EdmType DATE_TIME_OFFSET
public static final EdmType DECIMAL
public static final EdmType DOUBLE
public static final EdmType SINGLE
public static final EdmType GUID
public static final EdmType INT16
public static final EdmType INT32
public static final EdmType INT64
public static final EdmType SBYTE
public static final EdmType STRING
public static final EdmType TIME
public static EdmType[] values()
for (EdmType c : EdmType.values()) System.out.println(c);
public static EdmType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static EdmType parse(String value)
EdmType
enumeration value. A null
or
empty value parameter is matched as STRING
. Note that only the subset of EDM data types
supported in Microsoft Azure Table storage is parsed, consisting of BINARY
, BOOLEAN
,
BYTE
, DATE_TIME
, DOUBLE
, GUID
, INT32
, INT64
, and
STRING
. Any
other type will cause an IllegalArgumentException
to be thrown.value
- A String
containing the name of an EDM data type.EdmType
enumeration value matching the specified EDM data type.IllegalArgumentException
- if an EDM data type not supported in Microsoft Azure Table storage is passed as an argument.Copyright © 2018. All Rights Reserved.