6cafeb2fcf9a3f8098f3b65916048a51ced4841d
[ovsdb.git] / ovsdb / src / main / java / org / opendaylight / ovsdb / lib / operations / DeleteOperation.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 //TODO Madhu : This is not complete. Getting it in to enable other committers to make progress
16 public class DeleteOperation extends Operation {
17     String table;
18     List<Condition> where;
19
20     public DeleteOperation(String table, List<Condition> where) {
21         super();
22         super.setOp("delete");
23         this.table = table;
24         this.where = where;
25     }
26     public String getTable() {
27         return table;
28     }
29     public void setTable(String table) {
30         this.table = table;
31     }
32     public List<Condition> getWhere() {
33         return where;
34     }
35     public void setWhere(List<Condition> where) {
36         this.where = where;
37     }
38     @Override
39     public String toString() {
40         return "DeleteOperation [table=" + table + ", where=" + where
41                 + ", toString()=" + super.toString() + "]";
42     }
43 }