@Override public String getString() { return symbol(); } }
@Override public String getString() { return symbol(); } }
/** * Attempt to find the Order given a symbol. The matching is done independent of case. * * @param symbol the symbol * @return the Order having the supplied symbol, or null if there is no Order with the supplied symbol * @throws IllegalArgumentException if the symbol is null */ public static Order forSymbol( String symbol ) { CheckArg.isNotNull(symbol, "symbol"); if (ASCENDING.symbol().equalsIgnoreCase(symbol)) return ASCENDING; if (DESCENDING.symbol().equalsIgnoreCase(symbol)) return DESCENDING; return null; }
/** * Attempt to find the Order given a symbol. The matching is done independent of case. * * @param symbol the symbol * @return the Order having the supplied symbol, or null if there is no Order with the supplied symbol * @throws IllegalArgumentException if the symbol is null */ public static Order forSymbol( String symbol ) { CheckArg.isNotNull(symbol, "symbol"); if (ASCENDING.symbol().equalsIgnoreCase(symbol)) return ASCENDING; if (DESCENDING.symbol().equalsIgnoreCase(symbol)) return DESCENDING; return null; }
@Override public void visit( Ordering ordering ) { ordering.getOperand().accept(this); append(' ').append(ordering.order().symbol()); }
@Override public void visit( Ordering ordering ) { ordering.getOperand().accept(this); append(' ').append(ordering.order().symbol()); }
@Override public void visit( Ordering ordering ) { ordering.getOperand().accept(this); append(' ').append(ordering.order().symbol()); append(' ').append(ordering.nullOrder().symbol()); } }
@Override public void visit( Ordering ordering ) { ordering.getOperand().accept(this); append(' ').append(ordering.order().symbol()); append(' ').append(ordering.nullOrder().symbol()); } }