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

io.sphere.sdk.products.queries.ProductQueryModel Maven / Gradle / Ivy

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

import io.sphere.sdk.products.Product;
import io.sphere.sdk.producttypes.ProductType;
import io.sphere.sdk.queries.ResourceQueryModelImpl;
import io.sphere.sdk.queries.QueryModel;
import io.sphere.sdk.queries.ReferenceQueryModel;

import javax.annotation.Nullable;

public class ProductQueryModel extends ResourceQueryModelImpl {

    public static ProductQueryModel of() {
        return new ProductQueryModel(null, null);
    }

    private ProductQueryModel(@Nullable final QueryModel parent, @Nullable final String pathSegment) {
        super(parent, pathSegment);
    }

    public ProductCatalogDataQueryModel masterData() {
        return new ProductCatalogDataQueryModel<>(this, "masterData");
    }

    public ReferenceQueryModel productType() {
        return referenceModel("productType");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy