com.h3c.util.dao.query

## Class DaoDeleteQuery<P extends Storable<?>,T extends Transportable<? super T,?>,F>

- java.lang.Object
- - com.h3c.util.dao.WriteQuery<Long>
  - - com.h3c.util.dao.query.DaoDeleteQuery<P,T,F>

- Type Parameters:
    `P` - type of model persistent object.
    `T` - type of the transport object.
    `F` - type of the associated filter.

      public class DaoDeleteQuery<P extends Storable<?>,T extends Transportable<? super T,?>,F>
      extends WriteQuery<Long>

  Deletes persisted objects based off of filter.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DaoDeleteQuery(F filter, Dao<?,P,T,F,?> dao)` Creates a delete query.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected Long` | `execute(DataStoreContext context)` Executes the query.

    - ### Methods inherited from class com.h3c.util.dao.WriteQuery

      `execute`

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

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

- - ### Constructor Detail

    - #### DaoDeleteQuery

          public DaoDeleteQuery(F filter,
                        Dao<?,P,T,F,?> dao)

      Creates a delete query.
      Parameters:
        `filter` - filter to apply.
        `dao` - the DAO to carry out the operation.

  - ### Method Detail

    - #### execute

          protected Long execute(DataStoreContext context)

      Description copied from class: `WriteQuery`
      Executes the query.
      Specified by:
        `execute` in class `WriteQuery<Long>`
      Parameters:
        `context` - data store context.
      Returns:
        the result of the query.

Copyright © 2014. All Rights Reserved.