com.h3c.util.persistence

## Interface DataStoreService<C>

- Type Parameters:
    `C` - type of the data store execution context.
  All Known Implementing Classes:
    DataStoreManager

      public interface DataStoreService<C>

  `DataStoreService` Provides services to interact with the model data store.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T> T` | `execute(ReadQuery<T,C> query)` Executes a read query.
    `<T> T` | `execute(WriteQuery<T,C> query)` Executes a write query.
    `void` | `resetClientContext()`

- - ### Method Detail

    - #### execute

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

      Executes a read query.
      Type Parameters:
        `T` - type of the query result.
      Parameters:
        `query` - the read query to execute.
      Returns:
        the query result.
      Throws:
        `Exception` - if errors happen while executing the query.

    - #### execute

          <T> T execute(WriteQuery<T,C> query)
                    throws Exception

      Executes a write query.
      Type Parameters:
        `T` - type of the transaction result.
      Parameters:
        `query` - the write query to execute.
      Returns:
        the transaction result.
      Throws:
        `Exception` - if errors happen while executing the query.

    - #### resetClientContext

          void resetClientContext()

Copyright © 2014. All Rights Reserved.