Top Description Methods
jakarta.data.metamodel

public Interface SortableAttribute<T>

extends Attribute<T>
Known Direct Subinterfaces
jakarta.data.metamodel.TextAttribute
Known Direct Implementers
jakarta.data.metamodel.impl.SortableAttributeRecord
Type Parameters
<T>
entity class of the static metamodel.
Imports
jakarta.data.Sort

Represents a sortable entity attribute in the StaticMetamodel. Entity attribute types that are sortable include:

Method Summary

Modifier and TypeMethod and Description
public Sort<T>

Returns:

a request for an ascending sort on the entity attribute.
asc
()

Obtain a request for an ascending Sort based on the entity attribute.

public Sort<T>

Returns:

a request for a descending sort on the entity attribute.
desc
()

Obtain a request for a descending Sort based on the entity attribute.

Inherited from jakarta.data.metamodel.Attribute:
name

Method Detail

ascback to summary
public Sort<T> asc()

Obtain a request for an ascending Sort based on the entity attribute.

Returns:Sort<T>

a request for an ascending sort on the entity attribute.

descback to summary
public Sort<T> desc()

Obtain a request for a descending Sort based on the entity attribute.

Returns:Sort<T>

a request for a descending sort on the entity attribute.