Interface OrderByNullPrecedence
- All Known Implementing Classes:
OrderByNullPrecedence.SqlStandardOrderByNullPrecedence
public interface OrderByNullPrecedence
Represents how the
Sort.NullHandling option of an ORDER BY sort expression is to be evaluated.- Since:
- 2.4
- Author:
- Chirag Tailor
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAnOrderByNullPrecedenceimplementation for databases conforming to the SQL standard which usesNULLS FIRSTandNULLS LASTinORDER BYsort expressions to make null values appear before or after non-null values in the result set. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OrderByNullPrecedenceAnOrderByNullPrecedencethat can be used for databases that do not support the SQL standard usage ofNULLS FIRSTandNULLS LASTinORDER BYsort expressions to control where null values appear respective to non-null values in the result set.static final OrderByNullPrecedenceAnOrderByNullPrecedencethat can be used for databases conforming to the SQL standard which usesNULLS FIRSTandNULLS LASTinORDER BYsort expressions to make null values appear before or after non-null values in the result set. -
Method Summary
Modifier and TypeMethodDescriptionevaluate(Sort.NullHandling nullHandling) Converts aSort.NullHandlingoption to the appropriate SQL text to be included anORDER BYsort expression.
-
Field Details
-
SQL_STANDARD
AnOrderByNullPrecedencethat can be used for databases conforming to the SQL standard which usesNULLS FIRSTandNULLS LASTinORDER BYsort expressions to make null values appear before or after non-null values in the result set. -
NONE
AnOrderByNullPrecedencethat can be used for databases that do not support the SQL standard usage ofNULLS FIRSTandNULLS LASTinORDER BYsort expressions to control where null values appear respective to non-null values in the result set.
-
-
Method Details
-
evaluate
Converts aSort.NullHandlingoption to the appropriate SQL text to be included anORDER BYsort expression.
-