MappedStoreManager srm =
(MappedStoreManager)(qs != null ? qs.getStoreManager() : query.getObjectManager().getStoreManager());
//TODO make these functions pluggable
if (methodId.equalsIgnoreCase("ABS"))
{
return new MathExpression(qs).absMethod(((ScalarExpression) args.get(0)));
}
else if (methodId.equalsIgnoreCase("SQRT"))
{
return new MathExpression(qs).sqrtMethod(((ScalarExpression) args.get(0)));
}
else if (methodId.equalsIgnoreCase("CONCAT"))
{
return ((ScalarExpression) args.get(0)).add((ScalarExpression) args.get(1));
}