Package com.orchestranetworks.schema.trigger

# Interface BeforeTransactionCommitContext

All Superinterfaces:
  `TableTriggerExecutionContext`, `TriggerExecutionContext`

public interface BeforeTransactionCommitContext extends TableTriggerExecutionContext
Provides a context for executing pre-transaction commit operations.

See Also:
  - `TableTrigger.handleBeforeTransactionCommit(BeforeTransactionCommitContext)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ValueContext`
  `getOccurrenceContext()`
  Overridden, always returns `null` in this context.
  `ProcedureContext`
  `getProcedureContext()`
  Returns the current procedure context.
  `boolean`
  `isIntermediateCommit()`
  Returns `true` if this is an intermediate commit (not a final commit).

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

  `getAdaptationHome, getTable, isHistoryRestore`

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

  `getSession`

- ## Method Details

  - ### getProcedureContext

    ProcedureContext getProcedureContext()
    Returns the current procedure context. This context provides the opportunity to perform additional updates in the current dataspace.

  - ### isIntermediateCommit

    boolean isIntermediateCommit()
    Returns `true` if this is an intermediate commit (not a final commit).

    Intermediate commits are used during procedure execution if a `commitThreshold` has been set.

    See Also:
      - `ProcedureContext.setCommitThreshold(int)`
      - Tuning the EBX® repository

  - ### getOccurrenceContext

    ValueContext getOccurrenceContext()
    Overridden, always returns `null` in this context.
    Specified by:
      `getOccurrenceContext` in interface `TableTriggerExecutionContext`