com.h3c.util.dao

## Interface DataStoreService

- All Known Implementing Classes:
    DataStoreManager

      public interface DataStoreService

  Provides services to interact with the persistence data store.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T> T` | `execute(ReadQuery<T> query)` Executes a query operation on the persistence layer.
    `<T> T` | `execute(WriteQuery<T> update)` Executes an update operation on the persistence layer.

- - ### Method Detail

    - #### execute

          <T> T execute(ReadQuery<T> query)
                    throws Exception

      Executes a query operation on the persistence layer.
      Type Parameters:
        `T` - type of the query result.
      Parameters:
        `query` - the query to execute.
      Returns:
        the query result.
      Throws:
        `Exception` - if exception happen while executing the query.

    - #### execute

          <T> T execute(WriteQuery<T> update)
                    throws Exception

      Executes an update operation on the persistence layer.
      Type Parameters:
        `T` - type of the update result.
      Parameters:
        `update` - the database update to execute.
      Returns:
        the update result.
      Throws:
        `Exception` - if exception happen while executing the update.

Copyright © 2014. All Rights Reserved.