P
- Type of the result of the query from the Dao.T
- Type of the resultC
- Type of Data Store Contextpublic class AddQuery<T extends TransportObject<? super T,?>,P extends Storable<?>,C> extends Object implements WriteQuery<T,C>
TransportObject
object and Dao
object. These objects help in execution of the query.Constructor and Description |
---|
AddQuery(T transportable,
Dao<?,T,P,?,?,C> dao)
Provides ability for the business logic to perform
Write operations on the persistence layer.
|
Modifier and Type | Method and Description |
---|---|
T |
execute(C context)
This is the single execute method provided by the WriteQuery interface.
|
public AddQuery(T transportable, Dao<?,T,P,?,?,C> dao)
transportable
- dao
- public T execute(C context) throws Exception
execute
in interface WriteQuery<T extends TransportObject<? super T,?>,C>
context
- Context to execute the queryNullPointerException
- In case of context is null.Exception
- Throws Exception in case of any error in query execute.Copyright © 2016. All Rights Reserved.