Code ReOrganization and Re-Architecture changes
[ovsdb.git] / library / src / main / java / org / opendaylight / ovsdb / lib / operations / MutateOperation.java
1 /*
2  * Copyright (C) 2013 Red Hat, Inc.
3  *
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
7  *
8  * Authors : Madhu Venugopal
9  */
10 package org.opendaylight.ovsdb.lib.operations;
11
12 import java.util.List;
13
14 import org.opendaylight.ovsdb.lib.notation.Condition;
15 import org.opendaylight.ovsdb.lib.notation.Mutation;
16
17 public class MutateOperation extends Operation {
18     String table;
19     List<Condition> where;
20     List<Mutation> mutations;
21
22     public MutateOperation(String table, List<Condition> where,
23                            List<Mutation> mutations) {
24         super();
25         super.setOp("mutate");
26         this.table = table;
27         this.where = where;
28         this.mutations = mutations;
29     }
30
31     public String getTable() {
32         return table;
33     }
34
35     public void setTable(String table) {
36         this.table = table;
37     }
38
39     public List<Condition> getWhere() {
40         return where;
41     }
42
43     public void setWhere(List<Condition> where) {
44         this.where = where;
45     }
46
47     public List<Mutation> getMutations() {
48         return mutations;
49     }
50
51     public void setMutations(List<Mutation> mutations) {
52         this.mutations = mutations;
53     }
54
55     @Override
56     public String toString() {
57         return "MutateOperation [table=" + table + ", where=" + where
58                 + ", mutations=" + mutations + ", toString()="
59                 + super.toString() + "]";
60     }
61 }