Package org.kie.internal.runtime.manager.audit.query

## Interface AuditDeleteBuilder<T>

- Type Parameters:
    `T` -
  All Superinterfaces:
    `ParametrizedQueryBuilder<T>`
  All Known Subinterfaces:
    `AuditDateDeleteBuilder<T>`, `AuditTaskDeleteBuilder`, `ErrorInfoDeleteBuilder`, `NodeInstanceLogDeleteBuilder`, `ProcessInstanceLogDeleteBuilder`, `TaskEventDeleteBuilder`, `TaskVariableDeleteBuilder`, `VariableInstanceLogDeleteBuilder`

      public interface AuditDeleteBuilder<T>
      extends ParametrizedQueryBuilder<T>

  This interface defines methods that are used by all of the Audit delete query builder implementations.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `ParametrizedUpdate` | `build()` | Create the `ParametrizedUpdate` instance that can be used to execute an update or delete of the entities that this builder is for.
    `T` | `logBelongsToProcessInDeployment​(String deploymentId)` | Specify deployment id that process instance should be in as criteria in the query.
    `T` | `logBelongsToProcessInStatus​(Integer... statuses)` | Specify one or more status that process instance should be in as criteria in the query.
    `T` | `processId​(String... processId)` | Specify one or more process (definition) id's as criteria in the query
    `T` | `processInstanceId​(long... processInstanceId)` | Specify one or more process instance ids as criteria in the query
    `T` | `recordsPerTransaction​(int numRecords)` | Specify the number of records to be included per transaction.

    - ### Methods inherited from interface org.kie.internal.query.ParametrizedQueryBuilder

      `and, clear, equals, intersect, like, maxResults, offset, or, regex, union`

- - ### Method Detail

    - #### processInstanceId

          T processInstanceId​(long... processInstanceId)

      Specify one or more process instance ids as criteria in the query
      Parameters:
        `processInstanceId` - one or more a process instance ids
      Returns:
        The current query builder instance

    - #### processId

          T processId​(String... processId)

      Specify one or more process (definition) id's as criteria in the query
      Parameters:
        `processId` - one or more process ids
      Returns:
        The current query builder instance

    - #### logBelongsToProcessInStatus

          T logBelongsToProcessInStatus​(Integer... statuses)

      Specify one or more status that process instance should be in as criteria in the query. It might be supported or not
      Parameters:
        `statuses` -
      Returns:
        The current query builder instance
      See Also:
        `ProcessInstance`

    - #### logBelongsToProcessInDeployment

          T logBelongsToProcessInDeployment​(String deploymentId)

      Specify deployment id that process instance should be in as criteria in the query. It might me supported or not
      Parameters:
        `the` - deployment id
      Returns:
        The current query builder instance

    - #### recordsPerTransaction

          T recordsPerTransaction​(int numRecords)

      Specify the number of records to be included per transaction.
      Parameters:
        `numRecords` - number of records (0 means all records will be processed into one single transaction)
      Returns:
        The current query builder instance

    - #### build

          ParametrizedUpdate build()

      Create the `ParametrizedUpdate` instance that can be used to execute an update or delete of the entities that this builder is for. Further modifications to this builder instance will not affect the query criteria used in the `ParametrizedUpdate` produced by this method.
      Returns:
        a `ParametrizedUpdate` instance that can be executed.