}
@Override
public int executeUpdate() throws SQLException {
MutationPlan plan = optimizePlan();
MutationState state = plan.execute();
lastQueryPlan = null;
lastResultSet = null;
lastUpdateCount = (int)Math.min(state.getUpdateCount(), Integer.MAX_VALUE);
lastUpdateOperation = UpdateOperation.UPSERTED;
return lastUpdateCount;