T
- The type of the value of this custom object.public interface CustomObjectQuery<T> extends MetaModelQueryDsl<CustomObject<T>,CustomObjectQuery<T>,CustomObjectQueryModel<CustomObject<T>>,CustomObjectExpansionModel<CustomObject<T>>>
Queries custom objects.
withCustomObject(client(), "containerA", "key", customObjectA -> withCustomObject(client(), "containerB", "key", customObjectB -> { final Class<Foo> classForTheValue = Foo.class; final PagedQueryResult<CustomObject<Foo>> result = client().executeBlocking(CustomObjectQuery.of(classForTheValue).byContainer("containerA")); final List<CustomObject<Foo>> results = result.getResults(); assertThat(results) .contains(customObjectA) .doesNotContain(customObjectB); }) );
See the test code.
CustomObject
MAX_OFFSET, MIN_OFFSET
Modifier and Type | Method and Description |
---|---|
default CustomObjectQuery<T> |
byContainer(String container) |
static <T> CustomObjectQuery<T> |
of(Class<T> valueClass)
Query object for custom objects where the result value is a POJO.
|
static <T> CustomObjectQuery<T> |
of(com.fasterxml.jackson.core.type.TypeReference<T> valueTypeReference)
Query object for custom objects where the result value is a POJO.
|
static CustomObjectQuery<com.fasterxml.jackson.databind.JsonNode> |
ofJsonNode() |
plusPredicates, plusPredicates, plusPredicates, plusPredicates, plusSort, plusSort, plusSort, plusSort, withPredicates, withPredicates, withPredicates, withPredicates, withQueryParam, withSort, withSort, withSort, withSort, withSortMulti
withFetchTotal, withLimit, withLimit, withOffset, withOffset
endpoint, expansionPaths, fetchTotal, limit, offset, predicates, sort
deserialize, toQuery
canDeserialize, httpRequestIntent
plusExpansionPaths, withExpansionPaths
plusExpansionPaths, plusExpansionPaths, plusExpansionPaths, plusExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPaths
static <T> CustomObjectQuery<T> of(com.fasterxml.jackson.core.type.TypeReference<T> valueTypeReference)
T
- the Java type of the value of the custom objectvalueTypeReference
- the type reference of the value of the custom objectstatic <T> CustomObjectQuery<T> of(Class<T> valueClass)
T
- the Java type of the value of the custom objectvalueClass
- the class of the value, if it not uses generics like lists, typically for POJOsstatic CustomObjectQuery<com.fasterxml.jackson.databind.JsonNode> ofJsonNode()
default CustomObjectQuery<T> byContainer(String container)