menu

SiteGenesis / Server-side JS / Class: AbstractModel

models/AbstractModel~ AbstractModel

new AbstractModel(obj)

Abstract class for all modules implementing the The Model concept concept. Models typlcally wrap dw.object.PersistenObject instances or more general instances of Salesforce Commerce Cloud API classes.

Extends:
Parameters:
Name Type Description
obj Object
Source:
See:

Extends

Methods

extend(prop) → {Object}

Create a new sub class

Parameters:
Name Type Description
prop Object

An object defining the members of the sub class

Inherited From:
Source:
Returns:

The sub class

Type
Object