public StringExpression toStringExpression(NumericExpression expr)
{
if (expr instanceof Literal)
{
JavaTypeMapping m = getMapping(String.class, expr);
return new StringLiteral(expr.getQueryExpression(),m,((Literal)expr).getValue().toString());
}
List args = new ArrayList();
args.add(expr);
List argsRTRIM = new ArrayList();
argsRTRIM.add(new StringExpression("CHAR", args));