BooleanFactory b = vendor.getBooleanFactory();
LiteralFactory l = vendor.getLiteralFactory();
ColumnsFactory c = vendor.getColumnsFactory();
List<Integer> typeIDs = this.getEntityTypeIDs( resultType );
InBuilder in = b.inBuilder( c.colName( TABLE_NAME_PREFIX + TYPE_TABLE_SUFFIX,
DBNames.ENTITY_TYPES_TABLE_PK_COLUMN_NAME ) );
for( Integer i : typeIDs )
{
in.addValues( l.n( i ) );
}
return in.createExpression();
}