Interface SortableAttribute<T>

Type Parameters:
T - entity class of the static metamodel.
All Superinterfaces:
Attribute<T>
All Known Subinterfaces:
TextAttribute<T>
All Known Implementing Classes:
SortableAttributeRecord, TextAttributeRecord

public interface SortableAttribute<T> extends Attribute<T>
Represents a sortable entity attribute in the StaticMetamodel. Entity attribute types that are sortable include:
  • numeric attributes
  • enum attributes
  • time attributes
  • boolean attributes
  • textual attributes
  • Method Summary

    Modifier and Type
    Method
    Description
    asc()
    Obtain a request for an ascending Sort based on the entity attribute.
    Obtain a request for a descending Sort based on the entity attribute.

    Methods inherited from interface jakarta.data.metamodel.Attribute

    name
  • Method Details

    • asc

      Sort<T> asc()
      Obtain a request for an ascending Sort based on the entity attribute.
      Returns:
      a request for an ascending sort on the entity attribute.
    • desc

      Sort<T> desc()
      Obtain a request for a descending Sort based on the entity attribute.
      Returns:
      a request for a descending sort on the entity attribute.