Package jakarta.data.model
Interface AttributeInfo
public interface AttributeInfo
Implemented by the Jakarta Data provider to
initialize
an attribute field
in the StaticMetamodel
.-
Method Summary
Modifier and TypeMethodDescriptionasc()
Returns a request for an ascendingSort
based on the entity attribute.Returns a request for an ascending, case insensitiveSort
based on the entity attribute.desc()
Returns a request for a descendingSort
based on the entity attribute.Returns a request for a descending, case insensitiveSort
based on the entity attribute.name()
Returns the name of the entity attribute, suitable for use wherever the specification requires an entity attribute name.
-
Method Details
-
asc
Sort asc()Returns a request for an ascendingSort
based on the entity attribute.- Returns:
- a request for an ascending
Sort
based on the entity attribute.
-
ascIgnoreCase
Sort ascIgnoreCase()Returns a request for an ascending, case insensitiveSort
based on the entity attribute.- Returns:
- a request for an ascending, case insensitive sort on the entity attribute.
-
desc
Sort desc()Returns a request for a descendingSort
based on the entity attribute.- Returns:
- a request for a descending
Sort
based on the entity attribute.
-
descIgnoreCase
Sort descIgnoreCase()Returns a request for a descending, case insensitiveSort
based on the entity attribute.- Returns:
- a request for a descending, case insensitive sort on the entity attribute.
-
name
String name()Returns the name of the entity attribute, suitable for use wherever the specification requires an entity attribute name. For example, as the parameter toSort.asc(String)
.- Returns:
- the entity attribute name.
-