stringBuilder.append(" AND " + queryParameter.getColumn().getColumnName() + " " + queryParameter.getOperator() + " ?");
}
}
UpdateQuery query = null;
try {
query = new UpdateQuery(connection, false, stringBuilder.toString());
IntegerCounter integerCounter = new IntegerCounter();
// Keys values from SimpleColumns for where not in statement
this.setQueryValues(filteredBeans, query, integerCounter, this.simpleKeys, excludedField);
// Keys values from many to one relations for where not in statement
this.setQueryValues(filteredBeans, query, integerCounter, this.manyToOneRelationKeys.values(), excludedField);
if (queryParameters != null) {
// Set query param values
this.setQueryParameters(query, new HighLevelQuery<T>(queryParameters), integerCounter.increment());
}
query.executeUpdate();
} finally {
PreparedStatementQuery.autoCloseQuery(query);
}