com.h3c.util.dao.query

## Class DaoGetQuery<I extends Serializable,P extends Storable<I>,T extends Transportable<? super T,I>>

- java.lang.Object
- - com.h3c.util.dao.ReadQuery<T>
  - - com.h3c.util.dao.query.DaoGetQuery<I,P,T>

- Type Parameters:
    `I` - type of the persistent object and transport object id.
    `P` - type of persistent object.
    `T` - type of the transport object.

      public class DaoGetQuery<I extends Serializable,P extends Storable<I>,T extends Transportable<? super T,I>>
      extends ReadQuery<T>

  Query to get a transport object from the database.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DaoGetQuery(Id<T,I> id, Dao<I,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.ReadQuery

      `execute`

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

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

- - ### Constructor Detail

    - #### DaoGetQuery

          public DaoGetQuery(Id<T,I> id,
                     Dao<I,P,T,?,?> dao)

      Creates a query.
      Parameters:
        `id` - transport object's id.
        `dao` - DAO used to perform the database operations for the query.

  - ### Method Detail

    - #### execute

          protected T execute(DataStoreContext context)

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

Copyright © 2014. All Rights Reserved.