Constructor
new UBDomain(domainInfo)
Arguments:
-
domainInfo
(Object)
 getDomainInfo UB server method resultProperties
-
domain
(Object)
 raw entities collection -
entityMethods
(Object)
 entities methods access rights for current user -
models
(Object)
 information about domain models -
i18n
(Object)
 entities localization to current user language -
forceMIMEConvertors
(Object)
 list of registered server-side MIME converters for document type attribute content
-
Members
entities: Object.<String, UBEntity>
Collection of entities
models: Object.<String, UBModel>
Models collection
forceMIMEConvertors: Object
readonly
ubDataTypes
static
readonly
UnityBase base attribute data types
Properties:
Name | Type | Description |
---|---|---|
Many |
||
Entity |
||
Int |
||
BigInt |
||
String |
||
Boolean |
||
Float |
||
DateTime |
||
Date |
||
Currency |
||
Document |
||
ID |
||
Text |
||
Enum |
ubMixins static readonly
UnityBase base mixins
Properties:
Name | Type | Description |
---|---|---|
dataHistory |
||
mStorage |
||
unity |
||
treePath |
ubServiceFields static readonly
Service attribute names
Properties:
Name | Type | Description |
---|---|---|
dateFrom |
||
dateTo |
Methods
get(entityCode, raiseErrorIfNotExistsopt) → UBEntity
Get entity by code
Arguments:
-
entityCode
(String)
-
[raiseErrorIfNotExists=false]
(Boolean)
 If true
and entity does not exists throw error
eachEntity(callBack, scopeopt)
Call collBack function for each entity.
Arguments:
filterEntities(config) → Array
Filter entities by properties
Arguments:
Example
// sessionCachedEntites contains all entities with property cacheType equal Session
var sessionCachedEntites = domain.filterEntities({cacheType: 'Session'});
getPhysicalDataType(dataType) → String
static
Return physical type by UBDataType
Arguments:
-
dataType
(String)
entityCode
(String)
[raiseErrorIfNotExists=false]
(Boolean)
 If true
and entity does not exists throw error
// sessionCachedEntites contains all entities with property cacheType equal Session
var sessionCachedEntites = domain.filterEntities({cacheType: 'Session'});
dataType
(String)