com.h3c.util.persistence.cassandra.query

## Class DeleteQueryWithFilter<F,C>

- java.lang.Object
- - com.h3c.util.persistence.cassandra.query.DeleteQueryWithFilter<F,C>

- Type Parameters:
    `F` - Filter to delete
    `C` - Type of context to execute the query.
  All Implemented Interfaces:
    WriteQuery<Long,C>

      public class DeleteQueryWithFilter<F,C>
      extends Object
      implements WriteQuery<Long,C>

  DeleteQueryWithFilter deletes entries which satisfying the filter condition from the database table.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DeleteQueryWithFilter(F filter, Dao<?,?,?,F,?,C> dao)` Query to Delete entries with filter.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Long` | `execute(C context)` Execute the delete operation with Filter.

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

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

- - ### Constructor Detail

    - #### DeleteQueryWithFilter

          public DeleteQueryWithFilter(F filter,
                               Dao<?,?,?,F,?,C> dao)

      Query to Delete entries with filter.
      Parameters:
        `filter` - Filter to delete
        `dao` - Dao used for Query execute.

  - ### Method Detail

    - #### execute

          public Long execute(C context)
                       throws Exception

      Execute the delete operation with Filter.
      Specified by:
        `execute` in interface `WriteQuery<Long,C>`
      Parameters:
        `context` - Context to execute the query
      Returns:
        result of Delete operation.
      Throws:
        `NullPointerException` - In case of context is null.
        `Exception` - Throws Exception in case of any error in query execute.

Copyright © 2014. All Rights Reserved.