diff options
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/datamodel/datamodel-providers.asciidoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/documentation/datamodel/datamodel-providers.asciidoc b/documentation/datamodel/datamodel-providers.asciidoc index a7acc1e10e..cff31f6b0e 100644 --- a/documentation/datamodel/datamodel-providers.asciidoc +++ b/documentation/datamodel/datamodel-providers.asciidoc @@ -215,7 +215,7 @@ The sorting options set through the component will be available through [interfa [source, java] ---- -DataProvider<Person, Void> dataProvider = new BackEndDataProvider<>( +DataProvider<Person, Void> dataProvider = new CallbackDataProvider<>( query -> { List<PersonSort> sortOrders = new ArrayList<>(); for(SortOrder<String> queryOrder : query.getSortOrders()) { @@ -362,7 +362,7 @@ It would then look for a string to filter by in the query and pass it to the ser [source, java] ---- -DataProvider<Person, String> dataProvider = new BackEndDataProvider<>( +DataProvider<Person, String> dataProvider = new CallbackDataProvider<>( query -> { // getFilter returns Optional<String> String filter = query.getFilter().orElse(null); |