TubDomain

TubDomain

new TubDomain()

UnityBase Domain definition.

Extends

Members

name

Domain name

config: TubDomainConfig

Domain configuration

asJSON: String

Stringified JSON representation of named collection

count: Number

Number of named collection items

items: Array

Array of collection items
Overrides:

strings: Array

Array of collection item names

Methods

newFromJSON(jsonString, positionopt)

Create a new attribute for entity. Accessible only iside mixin initializetion methods. jsonString is a JSON representation of a newly created attribute (with name), optional position is a position in attribte list to be inserted into.

        var entity = App.domain.byName('uba_user');
        var attrs = entity.attributes;
        var attr = attrs.newFromJSON(JSON.stringify({name: 'custom1', dataType: 'String', size: 10}), -1);
Arguments:
  1. jsonString (String)
  2. [position] (Number)

byName(name)Number|String|TubList

Get list element by name
Arguments:
  1. name
Overrides: