DatastoreMapping data_mapping = getDataStoreMapping(0);
if (data_mapping.isBitBased() || data_mapping.isIntegerBased())
{
if (dba.isBitReallyBoolean())
{
expr = new BooleanExpression(qs, this, te);
}
else
{
expr = new BooleanBitColumnExpression(qs, this, te);
}
}
else if (data_mapping.isBooleanBased())
{
expr = new BooleanExpression(qs, this, te);
}
else if (data_mapping.isStringBased())
{
expr = new BooleanCharColumnExpression(qs, this, te);
}
else
{
expr = new BooleanExpression(qs, this, te);
}
return expr;
}