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-only
postCreate  number

The event after a data portal create operation.

Default value

read-only
postExecute  number

The event after a data portal execute operation.

Default value

read-only
postFetch  number

The event after a data portal fetch operation.

Default value

read-only
postInsert  number

The event after a data portal insert operation.

Default value

read-only
postRemove  number

The event after a data portal remove operation.

Default value

read-only
postSave  number

The event after a data portal save operation.

Default value

read-only
postUpdate  number

The event after a data portal update operation.

Default value

read-only
preCreate  number

The event before a data portal create operation.

Default value

read-only
preExecute  number

The event before a data portal execute operation.

Default value

read-only
preFetch  number

The event before a data portal fetch operation.

Default value

read-only
preInsert  number

The event before a data portal insert operation.

Default value

read-only
preRemove  number

The event before a data portal remove operation.

Default value

read-only
preSave  number

The event before a data portal save operation.

Default value

read-only
preUpdate  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.