org.ektorp.impl
Class DefaultQueryExecutor
java.lang.Object
org.ektorp.impl.DefaultQueryExecutor
- All Implemented Interfaces:
- QueryExecutor
public class DefaultQueryExecutor
- extends Object
- implements QueryExecutor
This is the default implementation of the executeQuery method of StdCouchDbConnector,
as of before the method was delegating to the QueryExecutor strategy interface.
Be aware that, as stated in https://github.com/helun/Ektorp/issues/165 this implementation is making use of POST HTTP method in case of multiple keys,
so that it may not be appropriate for hosted services like Cloudant where POST are more charged that GET.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultQueryExecutor
public DefaultQueryExecutor()
DefaultQueryExecutor
public DefaultQueryExecutor(RestTemplate restTemplate)
getRestTemplate
public RestTemplate getRestTemplate()
setRestTemplate
public void setRestTemplate(RestTemplate value)
executeQuery
public <T> T executeQuery(ViewQuery query,
ResponseCallback<T> rh)
- Specified by:
executeQuery in interface QueryExecutor
Copyright © 2017. All rights reserved.