Package overit.geocall.model.sorting
Class Order
java.lang.Object
overit.geocall.model.sorting.Order
The Order class represents an SQL order clause builder.
It allows building an SQL order clause based on a raw order dto based string, a target class, and additional mappings.
To ordering the user response dto for a DABase, you could use this class in this way:
and then using
To ordering the user response dto for a DAO, you could use this class in this way:
and then using
To ordering the user response dto for a DABase, you could use this class in this way:
Order o = new Order.Builder().of("+id",BOUser.class).build();and then using
o.toSqlClause(new JDBCOrderStatementGenerator()); the result will be "AUSEID ASC"To ordering the user response dto for a DAO, you could use this class in this way:
Order o = new Order.Builder().of("-id",BOUser.class).build();and then using
o.toSqlClause(new DAOOrderStatementGenerator()); the result will be "!AUSEID"-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe Builder class is responsible for building Order objects. -
Method Summary
Modifier and TypeMethodDescriptionClass<?> toSqlClause(@NotNull OrderStatementGenerator generator)
-
Method Details
-
getRawExpression
-
getMappingType
-
getAdditionalMapping
-
getIgnoredFields
-
toSqlClause
-