Skip to content

Add-ons in BeforeDelete

Add-ons are optional interfaces. Implement as many as you need next to BeforeDelete.Handler.

Available

  • PriorParentQuery: load the parent the old row pointed to; read it with getOldParent.
  • RelatedQuery: query children, siblings or any other records once per chunk; read them with getRelated.
  • Bypassable: skip this handler for the whole chunk when a condition holds.
  • Finalizer: run once after this handler’s records, with the records that qualified.
  • ContinueOnError: log and swallow this handler’s exceptions, so the save goes on.