EdmType Enum

  • java.lang.Object
    • java.lang.Enum<EdmType>
      • com.microsoft.azure.storage.table.EdmType

public enum EdmType

A enumeration used to represent the primitive types of the Entity Data Model (EDM) in the Open Data Protocol (OData). The EDM is the underlying abstract data model used by OData services. The EdmType enumeration includes a parse(final String value) 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).

Fields

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. through 11:59:59 P.M, December 9999 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. through 11:59:59 P.M, December 9999 A.D

DECIMAL

Edm.Decimal Represents numeric values with fixed precision and scale. This type can describe a numeric value ranging from negative 10^255 + 1 to positive 10^255 -1

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

Inherited Members

com.microsoft.azure.storage.table._edm_type_1ac96fb66a1c026bf7f979ec54832f4df5

Methods

mustAnnotateType()

protected final boolean mustAnnotateType()

Returns

final boolean

parse(final String value)

public static EdmType parse(final String value)

Parses an EDM data type name and return the matching EdmType enumeration value. A 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.

Parameters

value
final String
A String containing the name of an EDM data type.

Returns

The EdmType enumeration value matching the specified EDM data type.

Exceptions

IllegalArgumentException
if an EDM data type not supported in Microsoft Azure Table storage is passed as an argument.

toString()

public String toString()

Returns the name of the EDM data type corresponding to the enumeration value.

Returns

String
A String containing the name of the EDM data type.

Applies to