- Type Parameters:
T- entity class of the static metamodel.
- All Superinterfaces:
Attribute<T>,BasicAttribute<T,,String> ComparableAttribute<T,,String> ComparableExpression<T,,String> Expression<T,,String> SortableAttribute<T>,TextExpression<T>
- All Known Implementing Classes:
TextAttributeRecord
Represents an textual entity attribute in the
StaticMetamodel.-
Method Summary
Modifier and TypeMethodDescriptionObtain a request for an ascending, case-insensitiveSortbased on the entity attribute.Obtain a request for a descending, case insensitiveSortbased on the entity attribute.static <T> TextAttribute<T> Creates a static metamodelTextAttributerepresenting the entity attribute with the specified name.type()ReturnsString.classas the entity attribute type for text attributes.Methods inherited from interface jakarta.data.metamodel.Attribute
declaringType, nameMethods inherited from interface jakarta.data.expression.ComparableExpression
between, between, greaterThan, greaterThan, greaterThanEqual, greaterThanEqual, lessThan, lessThan, lessThanEqual, lessThanEqual, notBetween, notBetweenMethods inherited from interface jakarta.data.expression.Expression
equalTo, equalTo, in, in, in, isNull, notEqualTo, notEqualTo, notIn, notIn, notIn, notNull, satisfiesMethods inherited from interface jakarta.data.metamodel.SortableAttribute
asc, descMethods inherited from interface jakarta.data.expression.TextExpression
append, append, contains, endsWith, left, length, like, like, like, like, lower, notContains, notEndsWith, notLike, notLike, notLike, notStartsWith, prepend, prepend, right, startsWith, upper
-
Method Details
-
ascIgnoreCase
Obtain a request for an ascending, case-insensitiveSortbased on the entity attribute.- Returns:
- a request for an ascending, case-insensitive sort on the entity attribute.
-
type
ReturnsString.classas the entity attribute type for text attributes.- Specified by:
typein interfaceAttribute<T>- Specified by:
typein interfaceBasicAttribute<T,String> - Specified by:
typein interfaceExpression<T,String> - Specified by:
typein interfaceTextExpression<T>- Returns:
String.class.- Since:
- 1.1
-
descIgnoreCase
Obtain a request for a descending, case insensitiveSortbased on the entity attribute.- Returns:
- a request for a descending, case insensitive sort on the entity attribute.
-
of
Creates a static metamodel
TextAttributerepresenting the entity attribute with the specified name.- Type Parameters:
T- entity class of the static metamodel.- Parameters:
entityClass- the entity class.name- the name of the entity attribute.- Returns:
- instance of
TextAttribute. - Since:
- 1.1
-