org.hibernate.search.backend.spi

## Class DeleteByQueryWork

- java.lang.Object
- - org.hibernate.search.backend.spi.Work
  - - org.hibernate.search.backend.spi.DeleteByQueryWork

-     public class DeleteByQueryWork
      extends Work

  Delete via a serializable query
  Author:
    Martin Braun
  Experimental

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DeleteByQueryWork(IndexedTypeIdentifier entityType, DeletionQuery deletionQuery)`
    `DeleteByQueryWork(String tenantId, IndexedTypeIdentifier entityType, DeletionQuery deletionQuery)` Creates a DeleteByWork

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `DeletionQuery` | `getDeleteByQuery()`

    - ### Methods inherited from class org.hibernate.search.backend.spi.Work

      `getEntity, getId, getTenantIdentifier, getType, getTypeIdentifier, isIdentifierWasRolledBack, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### DeleteByQueryWork

          public DeleteByQueryWork(IndexedTypeIdentifier entityType,
                                   DeletionQuery deletionQuery)

    - #### DeleteByQueryWork

          public DeleteByQueryWork(String tenantId,
                                   IndexedTypeIdentifier entityType,
                                   DeletionQuery deletionQuery)

      Creates a DeleteByWork
      Parameters:
        `tenantId` - the tenant identifier
        `entityType` - the type to operate on
        `deletionQuery` - the query to delete by
      Throws:
        `IllegalArgumentException` - if a unsupported SerializableQuery is passed

  - ### Method Detail

    - #### getDeleteByQuery

          public DeletionQuery getDeleteByQuery()

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved