ORM provides callbacks to the event listeners for all the persistence events like Load, Insert, Update, Delete. These events can be used for data validations or transformation or for some generic functions such as auditing. These events can be handled at two levels in ColdFusion ORM:

  • In a persistent CFC
  • Using an event handler CFC
    To enable event handling for an application, define the following setting: ormsettings.eventhandling= "true"
    By default, this flag is disabled. If you do not specify this flag while the event handler CFC is defined, the flag is considered as enabled.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy