DatastoreMapping data_mapping = getDataStoreMapping(0);
if (data_mapping.isBitBased() || data_mapping.isIntegerBased())
{
if (dba.isBitReallyBoolean())
{
expr = new BooleanLiteral(qs, this, ((Boolean)value).booleanValue());
}
else
{
expr = new BooleanBitColumnLiteral(qs, this, ((Boolean)value).booleanValue());
}
}
else if (data_mapping.isBooleanBased())
{
expr = new BooleanLiteral(qs, this, ((Boolean)value).booleanValue());
}
else if (data_mapping.isStringBased())
{
expr = new BooleanCharColumnLiteral(qs, this, ((Boolean)value).booleanValue());
}
else
{
expr = new BooleanLiteral(qs, this, ((Boolean)value).booleanValue());
}
}
else
{
expr = new BooleanLiteral(qs, this, ((Boolean)value).booleanValue());
}
return expr;
}