Quick ORM
2.2.0
2.2.0
  • Introduction
  • What's New?
  • Upgrade Guide
  • Getting Started
    • Defining An Entity
    • Retrieving Entities
    • Creating New Entities
    • Updating Existing Entities
    • Deleting Entities
    • Query Scopes
  • Relationships
    • Relationship Types
      • hasOne
      • hasMany
      • belongsTo
      • belongsToMany
      • hasManyThrough
      • polymorphicBelongsTo
      • polymorphicHasMany
    • Retrieving Relationships
    • Eager Loading
  • CBORM Compatibility Shim
  • Collections
  • Custom Getters & Setters
  • Serialization
  • Interception Points
  • Debugging
  • Contributing
Powered by GitBook
On this page
  • quickInstanceReady
  • quickPreLoad
  • quickPostLoad
  • quickPreSave
  • quickPostSave
  • quickPreInsert
  • quickPostInsert
  • quickPreUpdate
  • quickPostUpdate
  • quickPreDelete
  • quickPostDelete

Was this helpful?

Edit on Git
Export as PDF

Interception Points

Quick allows you to hook in to multiple points in the entity lifecycle. If the event is on the component, you do not need to prefix it with quick. If you are listening to an interception point, include quick at the beginning.

If you create your own Interceptors, they will not fire if you define them in your Main application. quick will be loaded AFTER your interceptors, so the quick interception points will not be registered with your interceptor. This can be solved by moving your interceptors to a module with a dependency on quick, of by also registering the quick custom interception points in your main coldbox configuration.

quickInstanceReady

Fired after dependency injection has been performed on the entity and the metadata has been inspected.

interceptData structure

Key

Description

entity

The entity loaded

quickPreLoad

Fired before attempting to load an entity from the database.

This method is only called for find actions.

interceptData structure

Key

Description

id

The id of the entity attempting to be loaded

metadata

The metadata of the entity

quickPostLoad

Fired after loading an entity from the database.

This method is only called for find actions.

interceptData structure

Key

Description

entity

The entity loaded

quickPreSave

Fired before saving an entity to the database.

This method is called for both insert and update actions.

interceptData structure

Key

Description

entity

The entity to be saved

quickPostSave

Fired after saving an entity to the database.

This method is called for both insert and update actions.

interceptData structure

Key

Description

entity

The entity that was saved

quickPreInsert

Fired before inserting an entity into the database.

interceptData structure

Key

Description

entity

The entity to be inserted

quickPostInsert

Fired after inserting an entity into the database.

interceptData structure

Key

Description

entity

The entity that was inserted

quickPreUpdate

Fired before updating an entity in the database.

interceptData structure

Key

Description

entity

The entity to be updated

quickPostUpdate

Fired after updating an entity in the database.

interceptData structure

Key

Description

entity

The entity that was updated

quickPreDelete

Fired before deleting a entity from the database.

interceptData structure

Key

Description

entity

The entity to be deleted

quickPostDelete

Fired after deleting a entity from the database.

interceptData structure

Key

Description

entity

The entity that was deleted

PreviousSerializationNextDebugging

Last updated 6 years ago

Was this helpful?