Class SortImplementor
- java.lang.Object
-
- io.quarkus.rest.data.panache.deployment.utils.SortImplementor
-
public final class SortImplementor extends Object
-
-
Constructor Summary
Constructors Constructor Description SortImplementor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.quarkus.gizmo.ResultHandlegetSort(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle sortParams)Builds a PanacheSortinstance based on the sort query parameters.
-
-
-
Method Detail
-
getSort
public io.quarkus.gizmo.ResultHandle getSort(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle sortParams)Builds a PanacheSortinstance based on the sort query parameters. Sort query parameters could be either separated by comma or given as separate instances, e.g. '?sort=name,-age&sort=age'. '-' sign before the field name indicates a descending order.- Parameters:
creator- Bytecode creator instance.sortParams- List of sort query strings- Returns:
- Panache Sort instance
-
-