Added more ignorable files to .gitignore
[ovsdb.git] / ovsdb / src / main / java / org / opendaylight / ovsdb / lib / operations / UpdateOperation.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.table.internal.Table;
16 //TODO Madhu : This is not complete. Getting it in to enable other committers to make progress
17 public class UpdateOperation extends Operation {
18     String table;
19     List<Condition> where;
20     Table<?> row;
21
22     public UpdateOperation(String table, List<Condition> where, Table<?> row) {
23         super();
24         super.setOp("update");
25         this.table = table;
26         this.where = where;
27         this.row = row;
28     }
29     public String getTable() {
30         return table;
31     }
32     public void setTable(String table) {
33         this.table = table;
34     }
35     public List<Condition> getWhere() {
36         return where;
37     }
38     public void setWhere(List<Condition> where) {
39         this.where = where;
40     }
41     public Table<?> getRow() {
42         return row;
43     }
44     public void setRow(Table<?> row) {
45         this.row = row;
46     }
47     @Override
48     public String toString() {
49         return "UpdateOperation [table=" + table + ", where=" + where
50                 + ", row=" + row + ", toString()=" + super.toString() + "]";
51     }
52 }