public static interface DocumentQueryMapper.DocumentMapperQueryBuild
DocumentQuery.
It either can return a new DocumentQuery instance or execute a query with
DocumentTemplate
and DocumentTemplateAsync| Modifier and Type | Method and Description |
|---|---|
DocumentQuery |
build()
Creates a new instance of
DocumentQuery |
DocumentQuery |
build(Pagination pagination)
Creates a new instance of
DocumentQuery from Pagination |
<T> Stream<T> |
getResult(DocumentTemplate template)
|
<T> void |
getResult(DocumentTemplateAsync templateAsync,
Consumer<Stream<T>> callback)
|
<T> Stream<T> |
getResult(DocumentTemplate template,
Pagination pagination)
Executes
DocumentTemplate.select(DocumentQuery) using Pagination |
<T> Optional<T> |
getSingleResult(DocumentTemplate template)
|
<T> void |
getSingleResult(DocumentTemplateAsync templateAsync,
Consumer<Optional<T>> callback)
|
<T> Optional<T> |
getSingleResult(DocumentTemplate template,
Pagination pagination)
Executes
DocumentTemplate.singleResult(DocumentQuery) using Pagination |
<T> Page<T> |
page(DocumentTemplate template,
Pagination pagination)
Creates a
Page from pagination |
DocumentQuery build()
DocumentQueryDocumentQuery instanceDocumentQuery build(Pagination pagination)
DocumentQuery from Paginationpagination - the paginationDocumentQuery instance from Pagination<T> Stream<T> getResult(DocumentTemplate template)
T - the entity typetemplate - the template to documentDocumentTemplate.select(DocumentQuery)NullPointerException - when manager is null<T> Optional<T> getSingleResult(DocumentTemplate template)
T - the entity typetemplate - the template to documentDocumentTemplate.singleResult(DocumentQuery)NullPointerException - when manager is null<T> Stream<T> getResult(DocumentTemplate template, Pagination pagination)
DocumentTemplate.select(DocumentQuery) using PaginationT - the entity typetemplate - the document templatepagination - the paginationDocumentTemplate.select(DocumentQuery)NullPointerException - when there are null parameters<T> Optional<T> getSingleResult(DocumentTemplate template, Pagination pagination)
DocumentTemplate.singleResult(DocumentQuery) using PaginationT - the entity typetemplate - the document templatepagination - the paginationDocumentTemplate.singleResult(DocumentQuery)NullPointerException - when there are null parameters<T> void getResult(DocumentTemplateAsync templateAsync, Consumer<Stream<T>> callback)
T - the entity typetemplateAsync - the templateAsynccallback - the callbackNullPointerException - when there is null parameter<T> void getSingleResult(DocumentTemplateAsync templateAsync, Consumer<Optional<T>> callback)
T - the entity typetemplateAsync - the templateAsynccallback - the callbackNullPointerException - when there is null parameter<T> Page<T> page(DocumentTemplate template, Pagination pagination)
Page from paginationT - the typepagination - the paginationtemplate - the templatePage from instanceNullPointerException - when there are null parametersCopyright © 2017–2019 Eclipse Foundation. All rights reserved.