StringBuilder sb = new StringBuilder("INSERT INTO ").append(getTableName()).append(" (");
List<String> insertColumns = new ArrayList(getColumns().size());
List<String> insertPlaceholderColumns = new ArrayList(getColumns().size());
for(int i = 0; i < getColumns().size(); i++) {
Column c = getColumns().get(i);
if(c.isInsertable()) {
insertColumns.add(c.getSqlName());
insertPlaceholderColumns.add(getColumnPlaceholder(c));
}
}
sb.append(StringUtils.join(insertColumns.iterator(), ","));