MasterRepository Class
load master data
Item Index
Methods
- getAllSync
- getByIdSync
- load
- loaded static
Properties
- modelsById static
- storeMasterTable static
Methods
getAllSync
()
Array(Model)
public
get model by id
Returns:
Array(Model):
model
getByIdSync
(
Model
public
-
id
get model by id
Parameters:
-
idString
Returns:
Model:
model
load
()
Promise(Boolean)
load whole master data of the model when @storeMasterTable is off, load will fail.
Returns:
Promise(Boolean):
is load succeed or not.
loaded
()
public
static
check loaded or not
Properties
modelsById
Unknown
protected
static
loaded map of id => models
storeMasterTable
Boolean
static
a flag to load and store all models with @load() method if set to true, master table is generated after @load() method, and used in BaseFactory#createFromObject()
