All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.carts.queries.CartQuery 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.carts.Cart.
To render this class the handlebars template 'queries/resourceQueryInterface.hbs' has been used.
*/
package io.sphere.sdk.carts.queries;

import com.fasterxml.jackson.core.type.TypeReference;
import io.sphere.sdk.carts.Cart;
import io.sphere.sdk.carts.expansion.CartExpansionModel;
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 carts
 */
public interface CartQuery 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 CartQuery of() {
        return new CartQueryImpl();
    }

    @Override
    CartQuery plusPredicates(final Function> m);

    @Override
    CartQuery plusPredicates(final QueryPredicate queryPredicate);

    @Override
    CartQuery plusPredicates(final List> queryPredicates);

    @Override
    CartQuery plusSort(final Function> m);

    @Override
    CartQuery plusSort(final List> sort);

    @Override
    CartQuery plusSort(final QuerySort sort);

    @Override
    CartQuery withPredicates(final Function> predicateFunction);

    @Override
    CartQuery withPredicates(final QueryPredicate queryPredicate);

    @Override
    CartQuery withPredicates(final List> queryPredicates);

    @Override
    CartQuery withSort(final Function> m);

    @Override
    CartQuery withSort(final List> sort);

    @Override
    CartQuery withSort(final QuerySort sort);

    @Override
    CartQuery withSortMulti(final Function>> m);

    @Override
    CartQuery plusExpansionPaths(final Function, ExpansionPathContainer> m);

    @Override
    CartQuery withExpansionPaths(final Function, ExpansionPathContainer> m);

    @Override
    CartQuery withFetchTotal(final boolean fetchTotal);

    @Override
    CartQuery withLimit(final Long limit);

    @Override
    CartQuery withOffset(final Long offset);

    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy