class staticbo.shared. DataPortalEvent
Source: shared/
Specifies the events of models' data portal operations.
Properties
Method
new DataPortalEvent()
Creates a new enumeration to define the data portal events. Members:
- preFetch, postFetch
- preCreate, postCreate
- preInsert, postInsert
- preUpdate, postUpdate
- preRemove, postRemove
- preExecute, postExecute
- preSave, postSave
- Extends
- bo.system.Enumeration
Properties
read-only$name
string
The name of the enumeration. The default value is the name of the constructor.
- Inherited from
- bo.system.Enumeration#$name
read-onlypostCreate
number
The event after a data portal create operation.
- Default value
read-onlypostExecute
number
The event after a data portal execute operation.
- Default value
read-onlypostFetch
number
The event after a data portal fetch operation.
- Default value
read-onlypostInsert
number
The event after a data portal insert operation.
- Default value
read-onlypostRemove
number
The event after a data portal remove operation.
- Default value
read-onlypostSave
number
The event after a data portal save operation.
- Default value
read-onlypostUpdate
number
The event after a data portal update operation.
- Default value
read-onlypreCreate
number
The event before a data portal create operation.
- Default value
read-onlypreExecute
number
The event before a data portal execute operation.
- Default value
read-onlypreFetch
number
The event before a data portal fetch operation.
- Default value
read-onlypreInsert
number
The event before a data portal insert operation.
- Default value
read-onlypreRemove
number
The event before a data portal remove operation.
- Default value
read-onlypreSave
number
The event before a data portal save operation.
- Default value
read-onlypreUpdate
number
The event before a data portal update operation.
- Default value
Method
hasValue(name) → boolean
Determines if the enumeration has an item with the given name.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
name |
|
|
The name of the enumeration item. |
- Inherited from
- bo.system.Enumeration#hasValue
- Returns
-
True if the name is an enumeration item, otherwise false.