}
if (collExpr instanceof CollectionLiteral)
{
// Literal collection
CollectionLiteral lit = (CollectionLiteral)collExpr;
Collection coll = (Collection)lit.getValue();
JavaTypeMapping m = exprFactory.getMappingForType(boolean.class, true);
if (coll == null || coll.isEmpty())
{
return exprFactory.newLiteral(stmt, m, true).eq(exprFactory.newLiteral(stmt, m, false));
}
if (collExpr.isParameter())
{
stmt.getQueryGenerator().useParameterExpressionAsLiteral((CollectionLiteral)collExpr);
}
boolean useInExpression = false;
List<SQLExpression> collElementExprs = lit.getElementExpressions();
if (collElementExprs != null && !collElementExprs.isEmpty())
{
// Make sure the the collection element(s) are compatible with the elemExpr
boolean incompatible = true;
Class elemtype = clr.classForName(elemExpr.getJavaTypeMapping().getType());