Code example for Order

Methods: toString

0
    private static String getAssociationPrefix(final String associationPath) {
        return associationPath == null ? "" : associationPath + ".";
    } 
 
    private static boolean isAscending(final Order order) {
        return order.toString().toUpperCase().endsWith("ASC");
    } 
 
    public String getExpression() {
        return expression;
    } 
 
    public boolean isAscending() { 
        return isAscending;
    } 
 
    private static String getSortingProperty(final Order order) {
        /** 
         * This method relies on the format that Order is using: 
         * propertyName + ' ' + (ascending?"asc":"desc") 
Experience pair programming with AI  Get Codota for Java