Class: ExtensionManagerSync

bo.shared. ExtensionManagerSync

Provides properties to customize synchronous models' behavior.

new ExtensionManagerSync(dataSource, modelPath)

Creates a new extension manager object for a synchronous model.

Parameters:
Name Type Description
dataSource string

The name of the data source.

modelPath string

The full path of the model.

Throws:

Extends

Members

<readonly> daoBuilder :external.daoBuilder

Factory method to create the data access object for a model instance.

Type:
Inherited From:

<readonly> dataCreate :external.dataCreate

Returns the property values of a new instance from the data source.

Type:
Inherited From:

<readonly> dataExecute :external.dataExecute

Executes a command on the data source.

Type:
Inherited From:

<readonly> dataFetch :external.dataFetch

Returns the property values of an existing instance from the data source.

Type:
Inherited From:

<readonly> dataInsert :external.dataInsert

Saves a new instance into the data source.

Type:
Inherited From:

<readonly> dataRemove :external.dataRemove

Deletes an existing instance from the data source.

Type:
Inherited From:

<readonly> dataSource :string

The name of the data source.

Type:
  • string
Inherited From:

<readonly> dataUpdate :external.dataUpdate

Saves an existing instance into the data source.

Type:
Inherited From:

<readonly> fromCto :external.fromCto

Converts the client transfer object to model instance.

Type:
Inherited From:

<readonly> fromDto :external.fromDto

Converts the data transfer object to model instance.

Type:
Inherited From:

<readonly> modelPath :string

The path of the model definition.

Type:
  • string
Inherited From:

<readonly> toCto :external.toCto

Converts the model instance to client transfer object.

Type:
Inherited From:

<readonly> toDto :external.toDto

Converts the model instance to data transfer object.

Type:
Inherited From:

Methods

addOtherMethod(methodName)

Adds a new instance method to the model. (The method will call a custom execute method on the data business object of command object.)

Parameters:
Name Type Description
methodName string

The name of the method on the data access object to be called.

Inherited From:

<protected> buildOtherMethods(instance, isSync)

Instantiate the defined custom methods on the model instance. (The method is currently used by command objects only.)

Parameters:
Name Type Description
instance ModelBase

An instance of the model.

isSync boolean

Indicates whether the model is synchronous or asynchronous.

Inherited From:

<protected> getDataAccessObject(modelName) → {bo.dataAccess.DaoBase}

Gets the data access object instance of the model.

Parameters:
Name Type Description
modelName string

The name of the model.

Inherited From:
Returns:

The data access object instance of the model.

Type
bo.dataAccess.DaoBase
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.