public ScalarExpression newScalarExpression(QueryExpression qs, LogicSetExpression te)
{
DatastoreMapping dsMapping = getDataStoreMapping(0);
if (dsMapping.isIntegerBased() || dsMapping.isDecimalBased())
{
ScalarExpression expr = new NumericExpression(qs, this, te);
return expr;
}
// Assumed to be string based
ScalarExpression expr = new CharacterExpression(qs, this, te);