io.sphere.sdk.customobjects.queries.CustomObjectQueryModel Maven / Gradle / Ivy
package io.sphere.sdk.customobjects.queries;
import io.sphere.sdk.customobjects.CustomObject;
import io.sphere.sdk.queries.QueryModel;
import io.sphere.sdk.queries.ResourceQueryModelImpl;
import io.sphere.sdk.queries.StringQuerySortingModel;
/**
* Metamodel to explore for which fields can be queried in a CustomObject.
*
*
* Example:
* {@include.example io.sphere.sdk.customobjects.queries.CustomObjectQueryTest#queryWithClass()}
*
* @param The type of the value of the custom object.
* @see CustomObject
*/
public class CustomObjectQueryModel> extends ResourceQueryModelImpl {
public static > CustomObjectQueryModel of() {
return new CustomObjectQueryModel<>(null, null);
}
private CustomObjectQueryModel(final QueryModel parent, final String pathSegment) {
super(parent, pathSegment);
}
public StringQuerySortingModel container() {
return stringModel("container");
}
public StringQuerySortingModel key() {
return stringModel("key");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy