Name | Type | Required | Description |
---|---|---|---|
entity | any | false |
Components
Component IEventHandler
Event handler for ORM Events. This should be used as a global application wide handler that can be set in the application using ormsettings.eventHandler=MyEventHandler. These events can be handled by the application to perform any pre or post actions for all ORM operations.Functions
postDelete
Called after deleting an item from the datastore
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.postInsert
Called after the entity is inserted into the database.
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
entity | any | false |
postLoad
Called after an entity is fully loaded.
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
entity | any | false |
postUpdate
Called after the entity is updated in the database.
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
entity | any | false |
preDelete
Called before the entity is deleted from the database.
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
entity | any | false |
preInsert
Called before inserting the enetity into the database.
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
entity | any | false |
preLoad
Called before injecting property values into a newly loaded entity instance.
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
entity | any | false |
preUpdate
Called before the entity is updated in the database.
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
entity | any | false | |
oldData | Struct | false |