Class nnjl.licurgo.DataObject
Defined in: nnjl.licurgo.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
nnjl.licurgo.DataObject(type, datasource)
Creates a new nnjl.licurgo.DataObject
|
| Field Attributes | Field Name and Description |
|---|---|
|
The datasource used to get the dataobject from the repositori
|
|
|
All the properties / RDBMS tables columns in an array
|
|
|
if this nnjl.licurgo.DataObject will be saved as a new one, if it will update an older version of itself
|
|
|
The type of the nnjl.licurgo.DataObject
|
|
|
All the values of the nnjl.licurgo.DataObject in a HashMap keyed by its property name
|
| Method Attributes | Method Name and Description |
|---|---|
|
fillJSON(json)
Fill the DataObject with an JavaScript Object normally fetched as a JSON string
|
|
|
get(path)
Get the value of a property.
|
|
|
getType()
|
|
|
set(path, value)
set the value of a property
|
|
|
toJSON(json)
Create a JavaScript Object with the properties of the DataObject
|
Class Detail
nnjl.licurgo.DataObject(type, datasource)
Creates a new nnjl.licurgo.DataObject
- Parameters:
- {Type} type
- {Datasaource} datasource
Field Detail
{DataSource}
datasource
The datasource used to get the dataobject from the repositori
{nnjl.licurgo.Property[]}
properties
All the properties / RDBMS tables columns in an array
{boolean}
saveAsNew
if this nnjl.licurgo.DataObject will be saved as a new one, if it will update an older version of itself
{Type}
type
The type of the nnjl.licurgo.DataObject
{HashMap.Object}
values
All the values of the nnjl.licurgo.DataObject in a HashMap keyed by its property name
Method Detail
fillJSON(json)
Fill the DataObject with an JavaScript Object normally fetched as a JSON string
- Parameters:
- {Object} json
{Object}
get(path)
Get the value of a property.
It is the same operation as DataObject.path
- Parameters:
- {String} path
- name of the property
- Returns:
- {Object}
{Object}
getPrimaryKey()
- Returns:
- {Object} Get the value of the primary key property
{nnjl.licurgo.Type}
getType()
- Returns:
- {nnjl.licurgo.Type} Get the type of the DataObject
{Object[]}
getValues()
- Returns:
- {Object[]} Get the values of all properties
set(path, value)
set the value of a property
- Parameters:
- {String} path
- name of the property
- {Object} value
- of the property
toJSON(json)
Create a JavaScript Object with the properties of the DataObject
- Parameters:
- {Object} json