Class: DataValue

parasql.schema.DataValue()

The DataValue class holds a value and monitors its changes. If you change the value of a DataValue object that change will not become visible in the user interface of your application until you call parasql.widget.AbstractWidget#redisplay on the widget or one of its parents.

Constructor

new DataValue()

License:
  • https://www.parasql.com/about/license.jsp

Extends

  • Object

Methods

equals(dataValue) → {boolean}

Parameters:
Name Type Description
dataValue parasql.schema.DataValue
Returns:
True if this DataValue has the same value as the specified DataValue.
Type
boolean

getBlobImageServingURL() → (nullable) {string}

Returns:
Only returns a value for GCSIMAGE (ImageUploadField class) or GCS_SIGNATURE (SignatureField class) types, otherwise returns undefined.
Type
string

getBlobObjectName() → {string}

Returns:
Type
string

getBoolean() → {boolean}

Returns:
as a primitive
Type
boolean

getDate() → {Date}

Returns:
Type
Date

getDateTime() → {Date}

Returns:
Type
Date

getNumber() → {number}

Returns:
as a primitive
Type
number

getString() → {string}

Returns:
Returns the string representation of this DataValue. To test for NULL values use isNull().
Type
string

getTime() → {Date}

Returns:
Type
Date

isChanged() → {boolean}

Returns:
Type
boolean

isNotNull() → {boolean}

Returns:
Type
boolean

isNull() → {boolean}

Returns:
Type
boolean

resetChangeTracker()

Marks this DataValue as not changed and sets its originalValue to its current value.

setBoolean(newBooleanValuenon-null)

Parameters:
Name Type Description
newBooleanValue boolean

setDate(datenon-null)

Parameters:
Name Type Description
date Date

setDateTime(datetimenon-null)

Parameters:
Name Type Description
datetime Date

setNull()

Make this value SQL NULL.

setNumber(newNumberValuenon-null)

Parameters:
Name Type Description
newNumberValue number

setString(newValuenon-null)

Sets the current value of this object.
Parameters:
Name Type Description
newValue string The empty string represents SQL NULL.

setTime(timenon-null)

Parameters:
Name Type Description
time Date

takeValueFrom(dataValuenon-null)

Parameters:
Name Type Description
dataValue parasql.schema.DataValue