com.rapleaf.jack.queries.OrderCriterion Maven / Gradle / Ivy
package com.rapleaf.jack.queries;
public class OrderCriterion implements QueryCondition {
private Column column;
private final QueryOrder order;
public OrderCriterion(QueryOrder order) {
this.column = Column.fromField(null, null, null);
this.order = order;
}
public OrderCriterion(Enum field, QueryOrder order) {
this.column = Column.fromField(null, field, null);
this.order = order;
}
public OrderCriterion(Column column, QueryOrder order) {
this.column = column;
this.order = order;
}
public Enum getField() {
return column.getField();
}
public QueryOrder getOrder() {
return order;
}
@Override
public String getSqlStatement() {
return column.getSqlKeyword() + " " + order.getSqlKeyword();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy