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.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 © 2015. All Rights Reserved.