Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
usfalami committed Aug 28, 2024
1 parent 3187d36 commit 63748c6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main/java/org/usf/jquery/core/DBColumn.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.usf.jquery.core;

import static org.usf.jquery.core.Order.ASC;
import static org.usf.jquery.core.Order.DESC;
import static org.usf.jquery.core.QueryParameterBuilder.formatValue;
import static org.usf.jquery.core.Utils.arrayJoin;
import static org.usf.jquery.core.Validation.requireLegalVariable;
Expand Down Expand Up @@ -379,11 +381,15 @@ default DBOrder order() {
}

default DBOrder asc() {
return new DBOrder(this, Order.ASC);
return order(ASC);
}

default DBOrder desc() {
return new DBOrder(this, Order.ASC);
return order(DESC);
}

default DBOrder order(Order order) {
return new DBOrder(this, order);
}

default WhenFilterBridge when(ComparisonExpression ex) {
Expand Down

0 comments on commit 63748c6

Please sign in to comment.