Class: DataStore

bo.shared. DataStore

Provides methods to manage the values of business object model's properties.

new DataStore()

Creates a new data store object.

Methods

getValue(property) → {*}

Gets the value of a model property.

Parameters:
Name Type Description
property bo.shared.PropertyInfo

The definition of the model property.

Throws:
Argument error: The property must be a PropertyInfo object.
Returns:

The current value of the property.

Type
*

hasValidValue(property) → {boolean}

Indicates whether a property has a valid value.

Parameters:
Name Type Description
property bo.shared.PropertyInfo

The definition of the model property.

Returns:

True if the property has a valid value, otherwise false.

Type
boolean

initValue(property, value)

Initializes the value of a property in the store.

Parameters:
Name Type Description
property bo.shared.PropertyInfo

The definition of the model property.

value *

The default value of the property (null or a child model).

Throws:

setValue(property, value) → {boolean}

Sets the value of a model property.

Parameters:
Name Type Description
property bo.shared.PropertyInfo

The definition of the model property.

value *

The new value of the property.

Throws:
Returns:

True if the value of the property has been changed, otherwise false.

Type
boolean
If you find bugs or have feature requests, please let us know.

JavaScript business objects ♦ Copyright © 2014-2016 Logikum, Ltd.
Documentation generated by JSDoc 3.2.2 on 2015. December 31. using the DocStrap template.