ClassLoaderResolver clr = query.getObjectManager().getClassLoaderResolver();
ScalarExpression expr;
if (id.equalsIgnoreCase("CURRENT_DATE"))
{
return new TemporalExpression(qs).currentDateMethod();
}
else if (id.equalsIgnoreCase("CURRENT_TIME"))
{
return new TemporalExpression(qs).currentTimeMethod();
}
else if (id.equalsIgnoreCase("CURRENT_TIMESTAMP"))
{
return new TemporalExpression(qs).currentTimestampMethod();
}
else if (id.equalsIgnoreCase("true"))
{
JavaTypeMapping m = srm.getDatastoreAdapter().getMapping(Boolean.class, srm, clr);
return m.newLiteral(qs, Boolean.TRUE);