break;
case REMOVE_FROM_LIST_AT_INDEX:
updateClauseAndBoundValues = changeSet.generateUpdateForRemovedAtIndexElement(conditions);
break;
default:
throw new AchillesException(String.format("Should not generate non-prepared statement for collection/map change of type '%s'", operationType));
}
final Pair<Update.Where, Object[]> whereClauseAndBoundValues = meta.getIdMeta().forStatementGeneration().generateWhereClauseForUpdate(entity, changeSet.getPropertyMeta(), updateClauseAndBoundValues.left);
boundValues = addAll(addAll(boundValues, addAll(updateClauseAndBoundValues.right, whereClauseAndBoundValues.right)), casEncodedValues.toArray());
return Pair.create(whereClauseAndBoundValues.left, boundValues);