Module jakarta.data

Interface TextAttribute<T>

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

public interface TextAttribute<T> extends ComparableAttribute<T,String>, TextExpression<T>
Represents an textual entity attribute in the StaticMetamodel.
  • Method Details

    • ascIgnoreCase

      default Sort<T> ascIgnoreCase()
      Obtain a request for an ascending, case-insensitive Sort based on the entity attribute.
      Returns:
      a request for an ascending, case-insensitive sort on the entity attribute.
    • type

      default Class<String> type()
      Returns String.class as the entity attribute type for text attributes.
      Specified by:
      type in interface Attribute<T>
      Specified by:
      type in interface BasicAttribute<T,String>
      Specified by:
      type in interface Expression<T,String>
      Specified by:
      type in interface TextExpression<T>
      Returns:
      String.class.
      Since:
      1.1
    • descIgnoreCase

      default Sort<T> descIgnoreCase()
      Obtain a request for a descending, case insensitive Sort based on the entity attribute.
      Returns:
      a request for a descending, case insensitive sort on the entity attribute.
    • of

      static <T> TextAttribute<T> of(Class<T> entityClass, String name)

      Creates a static metamodel TextAttribute representing 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