Package com.orchestranetworks.schema.trigger

# Interface BeforeDeleteOccurrenceContext

All Superinterfaces:
  `TableTriggerExecutionContext`, `TriggerExecutionContext`

public interface BeforeDeleteOccurrenceContext extends TableTriggerExecutionContext
Provides a context for executing pre-record deletion operations.

See Also:
  - `TableTrigger.handleBeforeDelete(BeforeDeleteOccurrenceContext)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Adaptation`
  `getAdaptationOccurrence()`
  Returns the record to be deleted.
  `DefinitionMode`
  `getDefinitionMode()`
  Returns the definition mode of the record to be deleted.
  `ValueContextForUpdate`
  `getOccurrenceContextForUpdate()`
  Returns the record context for performing the update.

  ### Methods inherited from interface com.orchestranetworks.schema.trigger.TableTriggerExecutionContext

  `getAdaptationHome, getOccurrenceContext, getTable, isHistoryRestore`

  ### Methods inherited from interface com.orchestranetworks.schema.trigger.TriggerExecutionContext

  `getSession`

- ## Method Details

  - ### getAdaptationOccurrence

    Adaptation getAdaptationOccurrence()
    Returns the record to be deleted.

  - ### getOccurrenceContextForUpdate

    ValueContextForUpdate getOccurrenceContextForUpdate()
    Returns the record context for performing the update.

    When a record is copied as-is from one table to another (see `ProcedureContext.getContext(AdaptationName)`), the default context is a read context. In this case, this method transforms it from a read context to an update context.

    See Also:
      - `TableTriggerExecutionContext.getOccurrenceContext()`

  - ### getDefinitionMode

    DefinitionMode getDefinitionMode()
    Returns the definition mode of the record to be deleted.