Show:

DataType Class

Defined in: a37_dataType.js:7
Module: breeze

DataType is an 'Enum' containing all of the supported data types.

Item Index

Properties

Methods

fmtOData

()

Defined in a37_dataType.js:37

Function to format this DataType for OData queries.

Returns:

value appropriate for OData query

fromEdmDataType

(
  • typeName
)
DataType static

Defined in a37_dataType.js:473

Returns the DataType for a specified EDM type name.

Parameters:

  • typeName String

Returns:

DataType:

A DataType.

getConcurrencyValue

(
  • previousValue
)

Defined in a37_dataType.js:56

Optional function to get the next value when the datatype is used as a concurrency property.

Parameters:

  • previousValue Object

Returns:

the next concurrency value, which may be a function of the previousValue.

getNext

()

Defined in a37_dataType.js:43

Optional function to get the next value for key generation, if this datatype is used as a key. Uses an internal table of previous values.

Returns:

value appropriate for this DataType

normalize

(
  • value
)

Defined in a37_dataType.js:49

Optional function to normalize a data value for comparison, if its value cannot be used directly. Note that this will be called each time a property is changed, so make it fast.

Parameters:

  • value Object

Returns:

value appropriate for this DataType

parse

(
  • value
  • sourceTypeName
)

Defined in a37_dataType.js:29

Function to convert a value from string to this DataType. Note that this will be called each time a property is changed, so make it fast.

Parameters:

  • value Any
  • sourceTypeName String

Returns:

value appropriate for this DataType

parseRawValue

(
  • value
)

Defined in a37_dataType.js:63

Optional function to convert a raw (server) value from string to this DataType.

Parameters:

  • value Any

Returns:

value appropriate for this DataType

Properties

Binary

DataType final static

Defined in a37_dataType.js:436

Boolean

DataType final static

Defined in a37_dataType.js:412

Byte

DataType final static

Defined in a37_dataType.js:319

DateTime

DataType final static

Defined in a37_dataType.js:371

DateTimeOffset

DataType final static

Defined in a37_dataType.js:387

Decimal

DataType final static

Defined in a37_dataType.js:331

defaultValue

Any

Defined in a37_dataType.js:14

The default value of this DataType.

Double

DataType final static

Defined in a37_dataType.js:345

Guid

DataType final static

Defined in a37_dataType.js:422

Int16

DataType final static

Defined in a37_dataType.js:306

Int32

DataType final static

Defined in a37_dataType.js:293

Int64

DataType final static

Defined in a37_dataType.js:279

isInteger

Boolean

Defined in a37_dataType.js:24

Whether this is an 'integer' DataType.

isNumeric

Boolean

Defined in a37_dataType.js:19

Whether this is a 'numeric' DataType.

Single

DataType final static

Defined in a37_dataType.js:358

String

DataType final static

Defined in a37_dataType.js:268

Time

DataType final static

Defined in a37_dataType.js:402

Undefined

DataType final static

Defined in a37_dataType.js:446