if (column == null || value == null)
{
return;
}
DB db = getDb();
for (int j = 0; j < this.clauses.size(); j++)
{
sb.append('(');
}
if (CUSTOM == comparison)
{
if (!"".equals(value))
{
sb.append((String) value);
}
}
else
{
String field = null;
if (table == null)
{
field = column;
}
else
{
field = new StringBuffer(
table.length() + 1 + column.length())
.append(table).append('.').append(column)
.toString();
}
if (comparison.equals(Criteria.IN)
|| comparison.equals(Criteria.NOT_IN))
{
sb.append(field)
.append(comparison);
UniqueList inClause = new UniqueList();
if (value instanceof List)
{
value = ((List) value).toArray (new Object[0]);
}
for (int i = 0; i < Array.getLength(value); i++)
{
Object item = Array.get(value, i);
inClause.add(SqlExpression.processInValue(item,
ignoreStringCase || ignoreCase,
db));
}
StringBuffer inString = new StringBuffer();
inString.append('(').append(StringUtils.join(
inClause.iterator(), (","))).append(')');
sb.append(inString.toString());
}
else
{
if (ignoreStringCase || ignoreCase)
{
sb.append(db.ignoreCase(field))
.append(comparison)
.append(db.ignoreCase("?"));
}
else
{
sb.append(field)
.append(comparison)