iter = introspectedTable.getNonPrimaryKeyColumns().iterator();
} else {
iter = introspectedTable.getBaseColumns().iterator();
}
while (iter.hasNext()) {
IntrospectedColumn introspectedColumn = iter.next();
sb.append(escapeStringForJava(getEscapedColumnName(introspectedColumn)));
sb.append(" = "); //$NON-NLS-1$
sb.append(getParameterClause(introspectedColumn));
if (iter.hasNext()) {
sb.append(',');
}
sb.append("\","); //$NON-NLS-1$
method.addAnnotation(sb.toString());
// set up for the next column
if (iter.hasNext()) {
sb.setLength(0);
javaIndent(sb, 1);
sb.append(" \""); //$NON-NLS-1$
}
}
boolean and = false;
iter = introspectedTable.getPrimaryKeyColumns().iterator();
while (iter.hasNext()) {
IntrospectedColumn introspectedColumn = iter.next();
sb.setLength(0);
javaIndent(sb, 1);
if (and) {
sb.append(" \"and "); //$NON-NLS-1$
} else {