
com.blade.jdbc.core.OrderBy Maven / Gradle / Ivy
The newest version!
package com.blade.jdbc.core;
import java.util.function.Supplier;
/**
* Created by biezhi on 03/07/2017.
*/
public class OrderBy implements Supplier {
private String orderBy;
private OrderBy(String orderBy) {
this.orderBy = orderBy;
}
public static OrderBy asc(String field) {
return new OrderBy(field + " ASC");
}
public static OrderBy desc(String field) {
return new OrderBy(field + " DESC");
}
public static OrderBy of(String orderBy) {
return new OrderBy(orderBy);
}
public String getOrderBy() {
return this.orderBy;
}
@Override
public ConditionEnum get() {
return ConditionEnum.ORDER_BY;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy