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

io.sphere.sdk.customobjects.queries.CustomObjectQueryBuilder Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.customobjects.queries;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonNode;
import io.sphere.sdk.customobjects.CustomObject;
import io.sphere.sdk.customobjects.expansion.CustomObjectExpansionModel;
import io.sphere.sdk.expansion.ExpansionPathContainer;
import io.sphere.sdk.json.TypeReferences;
import io.sphere.sdk.queries.QueryPredicate;
import io.sphere.sdk.queries.QuerySort;
import io.sphere.sdk.queries.ResourceMetaModelQueryDslBuilderImpl;

import java.util.List;
import java.util.function.Function;

/**

 {@doc.gen summary }

 */
public final class CustomObjectQueryBuilder extends ResourceMetaModelQueryDslBuilderImpl, CustomObject, CustomObjectQuery, CustomObjectQueryModel>, CustomObjectExpansionModel>> {

    private CustomObjectQueryBuilder(final CustomObjectQuery template) {
        super(template);
    }

    public static  CustomObjectQueryBuilder of(final TypeReference valueTypeReference) {
        return new CustomObjectQueryBuilder<>(CustomObjectQuery.of(valueTypeReference));
    }

    public static  CustomObjectQueryBuilder of(final Class valueClass) {
        return new CustomObjectQueryBuilder<>(CustomObjectQuery.of(valueClass));
    }

    public static CustomObjectQueryBuilder ofJsonNode() {
        return of(TypeReferences.jsonNodeTypeReference());
    }

    @Override
    protected CustomObjectQueryBuilder getThis() {
        return this;
    }

    @Override
    public CustomObjectQuery build() {
        return super.build();
    }

    @Override
    public CustomObjectQueryBuilder fetchTotal(final boolean fetchTotal) {
        return super.fetchTotal(fetchTotal);
    }

    @Override
    public CustomObjectQueryBuilder limit(final Long limit) {
        return super.limit(limit);
    }

    @Override
    public CustomObjectQueryBuilder limit(final long limit) {
        return super.limit(limit);
    }

    @Override
    public CustomObjectQueryBuilder offset(final Long offset) {
        return super.offset(offset);
    }

    @Override
    public CustomObjectQueryBuilder offset(final long offset) {
        return super.offset(offset);
    }

    @Override
    public CustomObjectQueryBuilder plusExpansionPaths(final Function>, ExpansionPathContainer>> m) {
        return super.plusExpansionPaths(m);
    }

    @Override
    public CustomObjectQueryBuilder plusPredicates(final Function>, QueryPredicate>> m) {
        return super.plusPredicates(m);
    }

    @Override
    public CustomObjectQueryBuilder plusPredicates(final QueryPredicate> queryPredicate) {
        return super.plusPredicates(queryPredicate);
    }

    @Override
    public CustomObjectQueryBuilder plusPredicates(final List>> queryPredicates) {
        return super.plusPredicates(queryPredicates);
    }

    @Override
    public CustomObjectQueryBuilder plusSort(final Function>, QuerySort>> m) {
        return super.plusSort(m);
    }

    @Override
    public CustomObjectQueryBuilder plusSort(final List>> sort) {
        return super.plusSort(sort);
    }

    @Override
    public CustomObjectQueryBuilder plusSort(final QuerySort> sort) {
        return super.plusSort(sort);
    }

    @Override
    public CustomObjectQueryBuilder predicates(final Function>, QueryPredicate>> m) {
        return super.predicates(m);
    }

    @Override
    public CustomObjectQueryBuilder predicates(final QueryPredicate> queryPredicate) {
        return super.predicates(queryPredicate);
    }

    @Override
    public CustomObjectQueryBuilder predicates(final List>> queryPredicates) {
        return super.predicates(queryPredicates);
    }

    @Override
    public CustomObjectQueryBuilder sort(final Function>, QuerySort>> m) {
        return super.sort(m);
    }

    @Override
    public CustomObjectQueryBuilder sort(final List>> sort) {
        return super.sort(sort);
    }

    @Override
    public CustomObjectQueryBuilder sort(final QuerySort> sort) {
        return super.sort(sort);
    }

    @Override
    public CustomObjectQueryBuilder sortMulti(final Function>, List>>> m) {
        return super.sortMulti(m);
    }

    @Override
    public CustomObjectQueryBuilder expansionPaths(final Function>, ExpansionPathContainer>> m) {
        return super.expansionPaths(m);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy