Class SortImplementor

java.lang.Object
io.quarkus.rest.data.panache.deployment.utils.SortImplementor

public final class SortImplementor extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.quarkus.gizmo.ResultHandle
    getSort(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle sortParams)
    Builds a Panache Sort instance based on the sort query parameters.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SortImplementor

      public SortImplementor()
  • Method Details

    • getSort

      public io.quarkus.gizmo.ResultHandle getSort(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle sortParams)
      Builds a Panache Sort instance 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