From 522c136e3168e8578b7f05a80d945a5ea457a7c3 Mon Sep 17 00:00:00 2001
From: Gavin King Requests sorting on a given entity attribute.
Defines sort criteria for an entity attribute. For more descriptive - * code, use:
- *Constructor for compatibility with Jakarta Data 1.0. Use the * {@link #of(String, Direction, boolean)} method instead.
@@ -177,19 +191,59 @@ public enum Nulls { * @param property name of the entity attribute to order by. * @param isAscending whether ordering for this attribute is ascending * ({@code true}) or descending ({@code false}). - * @param ignoreCase whether or not to request case insensitive ordering - * from a database with case sensitive collation. + * @param ignoreCase whether or not to request case-insensitive ordering + * from a database with case-sensitive collation. + * + * @deprecated This class should not be directly instantiated by clients. + * For more descriptive code, use: + *Indicates whether or not to request case insensitive ordering - * from a database with case sensitive collation. A database with case - * insensitive collation performs case insensitive ordering regardless of - * the requested {@code ignoreCase} value.
+ *Indicates whether or not to request case-insensitive ordering + * from a database with case-sensitive collation. A database with + * case-insensitive collation performs case-insensitive ordering + * regardless of the requested {@code ignoreCase} value.
* - * @return Returns whether or not to request case insensitive sorting for + * @return Returns whether or not to request case-insensitive sorting for * the entity attribute. */ public boolean ignoreCase() { @@ -244,13 +298,67 @@ public Nulls nullOrdering() { return nullOrdering; } + /** + * Create a {@link Sort} instance. + * + * @paramCreate a {@link Sort} instance, indicating how {@code null} values + * are ordered.
+ * + * @paramObtains a {@link Restriction} that requires that this expression
diff --git a/api/src/main/java/jakarta/data/metamodel/SortableAttribute.java b/api/src/main/java/jakarta/data/metamodel/SortableAttribute.java
index 68e20b146..3e808a92f 100644
--- a/api/src/main/java/jakarta/data/metamodel/SortableAttribute.java
+++ b/api/src/main/java/jakarta/data/metamodel/SortableAttribute.java
@@ -17,7 +17,7 @@
*/
package jakarta.data.metamodel;
-import jakarta.data.Sort;
+import jakarta.data.Sortable;
import jakarta.data.messages.Messages;
/**
@@ -38,27 +38,7 @@
*
* @param Creates a static metamodel {@code SortableAttribute} representing the
diff --git a/api/src/main/java/jakarta/data/metamodel/TextAttribute.java b/api/src/main/java/jakarta/data/metamodel/TextAttribute.java
index 0eeb7c4aa..d4c53d342 100644
--- a/api/src/main/java/jakarta/data/metamodel/TextAttribute.java
+++ b/api/src/main/java/jakarta/data/metamodel/TextAttribute.java
@@ -28,17 +28,6 @@
*/
public interface TextAttribute