com.h3c.util.dao.query

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

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

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

      public class DaoAddQuery<P extends Storable<?>,T extends Transportable<? super T,?>>
      extends WriteQuery<T>

  Creates a new persistence layer instance of the transportable object.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DaoAddQuery(T transportable, Dao<?,P,T,?,?> dao)` Creates a query.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected T` | `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

    - #### DaoAddQuery

          public DaoAddQuery(T transportable,
                     Dao<?,P,T,?,?> dao)

      Creates a query.
      Parameters:
        `transportable` - transport object to add
        `dao` - the DAO to carry out the operation

  - ### Method Detail

    - #### execute

          protected T execute(DataStoreContext context)

      Description copied from class: `WriteQuery`
      Executes the query.
      Specified by:
        `execute` in class `WriteQuery<T extends Transportable<? super T,?>>`
      Parameters:
        `context` - data store context.
      Returns:
        the result of the query.

Copyright © 2014. All Rights Reserved.