io.sphere.sdk.apiclient.queries.ApiClientQuery Maven / Gradle / Ivy
The newest version!
/*
This class has been generated by class io.sphere.sdk.annotations.processors.HasQueryEndpointAnnotationProcessor
induced by the annotation io.sphere.sdk.annotations.HasQueryEndpoint.
in the source class io.sphere.sdk.apiclient.ApiClient.
To render this class the handlebars template 'queries/resourceQueryInterface.hbs' has been used.
*/
package io.sphere.sdk.apiclient.queries;
import com.fasterxml.jackson.core.type.TypeReference;
import io.sphere.sdk.apiclient.ApiClient;
import io.sphere.sdk.apiclient.expansion.ApiClientExpansionModel;
import io.sphere.sdk.expansion.ExpansionPathContainer;
import io.sphere.sdk.queries.PagedQueryResult;
import io.sphere.sdk.queries.MetaModelQueryDsl;
import io.sphere.sdk.queries.QueryPredicate;
import io.sphere.sdk.queries.QuerySort;
import java.util.List;
import java.util.Locale;
import java.util.function.Function;
import java.util.Optional;
/**
* {@doc.gen summary api-clients
*/
public interface ApiClientQuery extends MetaModelQueryDsl> {
/**
* Creates a container which contains the full Java type information to deserialize the query result (NOT this class) from JSON.
*
* @see io.sphere.sdk.json.SphereJsonUtils#readObject(byte[], TypeReference)
* @see io.sphere.sdk.json.SphereJsonUtils#readObject(String, TypeReference)
* @see io.sphere.sdk.json.SphereJsonUtils#readObject(com.fasterxml.jackson.databind.JsonNode, TypeReference)
* @see io.sphere.sdk.json.SphereJsonUtils#readObjectFromResource(String, TypeReference)
*
* @return type reference
*/
static TypeReference> resultTypeReference() {
return new TypeReference>() {
@Override
public String toString() {
return "TypeReference>";
}
};
}
static ApiClientQuery of() {
return new ApiClientQueryImpl();
}
@Override
ApiClientQuery plusPredicates(final Function> m);
@Override
ApiClientQuery plusPredicates(final QueryPredicate queryPredicate);
@Override
ApiClientQuery plusPredicates(final List> queryPredicates);
@Override
ApiClientQuery plusSort(final Function> m);
@Override
ApiClientQuery plusSort(final List> sort);
@Override
ApiClientQuery plusSort(final QuerySort sort);
@Override
ApiClientQuery withPredicates(final Function> predicateFunction);
@Override
ApiClientQuery withPredicates(final QueryPredicate queryPredicate);
@Override
ApiClientQuery withPredicates(final List> queryPredicates);
@Override
ApiClientQuery withSort(final Function> m);
@Override
ApiClientQuery withSort(final List> sort);
@Override
ApiClientQuery withSort(final QuerySort sort);
@Override
ApiClientQuery withSortMulti(final Function>> m);
@Override
ApiClientQuery plusExpansionPaths(final Function, ExpansionPathContainer> m);
@Override
ApiClientQuery withExpansionPaths(final Function, ExpansionPathContainer> m);
@Override
ApiClientQuery withFetchTotal(final boolean fetchTotal);
@Override
ApiClientQuery withLimit(final Long limit);
@Override
ApiClientQuery withOffset(final Long offset);
}