2 * Copyright (C) 2013 Red Hat, Inc.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 * Authors : Madhu Venugopal
10 package org.opendaylight.ovsdb.lib.operations;
12 import java.util.List;
14 import org.opendaylight.ovsdb.lib.notation.Condition;
15 import org.opendaylight.ovsdb.lib.notation.Mutation;
17 public class MutateOperation extends Operation {
19 List<Condition> where;
20 List<Mutation> mutations;
22 public MutateOperation(String table, List<Condition> where,
23 List<Mutation> mutations) {
25 super.setOp("mutate");
28 this.mutations = mutations;
31 public String getTable() {
35 public void setTable(String table) {
39 public List<Condition> getWhere() {
43 public void setWhere(List<Condition> where) {
47 public List<Mutation> getMutations() {
51 public void setMutations(List<Mutation> mutations) {
52 this.mutations = mutations;
56 public String toString() {
57 return "MutateOperation [table=" + table + ", where=" + where
58 + ", mutations=" + mutations + ", toString()="
59 + super.toString() + "]";