T
- Type of the TransportObject objectC
- Type of the context of the query. This varies with the
implementation of the application and the database used.public interface ReadQuery<T,C>
ReadQuery
provides ability for the business logic to perform
Read operations on the persistence layer. The applications use DAO
to perform all database operations and the WriteQuery interface provides
methods that DAO can use to infer the type of query, the filter conditions,
the sort specifications and take the user query to the lower tiers.
WriteQuery.execute(C)
is a single call that the application/business
logic makes to perform a read operation. The implemented execute method
takes the Context as parameter. The Context varies with implementation and
DAO uses this context to pass data down to the entity manager.
T execute(C context) throws Exception
context
- - The DataStore context. Provides the context to the
query.Exception
Copyright © 2015. All Rights Reserved.