I - The object type of the returning temporary objectO - The returning list objectpublic abstract class QueryResultConverter<I,O> extends Object
| Constructor and Description |
|---|
QueryResultConverter() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
convert(I source,
O target)
Converts the temporary object of the query to a list object
|
PageableList<O> |
convert(PageableList<I> queryResult)
Converts the temporary object of the query to a list object
|
List<O> |
convertCollection(Collection<I> results)
Converts the temporary object to a list object
|
abstract O |
create()
Creates a new pageable list object to fill
|
public abstract boolean convert(I source, O target)
source - The temporary object returned by the executed querytarget - The converted list objectpublic PageableList<O> convert(PageableList<I> queryResult)
queryResult - the temporary object returned by the executed querypublic List<O> convertCollection(Collection<I> results)
results - the temporary object returned by the executed querypublic abstract O create()
Copyright © 2019 Communote team. All rights reserved.