Home directory for Malawi's wwwroot
Duncan Ewan
2021-02-19 3e758c29e0fde36fc088efcfc88f9a3014432b64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
 * 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.
 */
Interface
{
    /**
     * Called before injecting property values into a newly loaded entity instance.
     */
    public void function preLoad(any entity);
    
    /**
     * Called after an entity is fully loaded.
     */
    public void function postLoad(any entity);
 
   /**
    * Called before inserting the enetity into the database.
    */
    public void function preInsert(any entity);
    
    /**
     * Called after the entity is inserted into the database. 
     */
    public void function postInsert(any entity);
    
    /**
     * Called before the entity is updated in the database.
     */
    public void function preUpdate(any entity, Struct oldData);
    
    /**
     * Called after the entity is updated in the database. 
     */
    public void function postUpdate(any entity);
    
 
    /**
     * Called before the entity is deleted from the database. 
     */
    public void function preDelete(any entity);
    
    /**
     * Called after deleting an item from the datastore
     */
    public void function postDelete(any entity);
}