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

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

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

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JavaType;
import io.sphere.sdk.customobjects.CustomObject;
import io.sphere.sdk.customobjects.CustomObjectUtils;
import io.sphere.sdk.customobjects.expansion.CustomObjectExpansionModel;
import io.sphere.sdk.json.SphereJsonUtils;
import io.sphere.sdk.queries.MetaModelQueryDslBuilder;
import io.sphere.sdk.queries.MetaModelQueryDslImpl;

final class CustomObjectQueryImpl extends MetaModelQueryDslImpl, CustomObjectQuery, CustomObjectQueryModel>, CustomObjectExpansionModel>> implements CustomObjectQuery {
    CustomObjectQueryImpl(final TypeReference valueTypeReference) {
        this(SphereJsonUtils.convertToJavaType(valueTypeReference));
    }

    CustomObjectQueryImpl(final Class valueClass) {
        this(SphereJsonUtils.convertToJavaType(valueClass));
    }

    CustomObjectQueryImpl(final JavaType valueJavaType) {
        super(CustomObjectEndpoint.PATH, CustomObjectUtils.getCustomObjectJavaTypeForValue(valueJavaType), CustomObjectQueryModel.of(), CustomObjectExpansionModel.of(), b -> new CustomObjectQueryImpl(b));
    }

    private CustomObjectQueryImpl(final MetaModelQueryDslBuilder, CustomObjectQuery, CustomObjectQueryModel>, CustomObjectExpansionModel>> builder) {
        super(builder);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy