Code ReOrganization and Re-Architecture changes
[ovsdb.git] / library / src / main / java / org / opendaylight / ovsdb / lib / operations / InsertOperation.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 org.opendaylight.ovsdb.lib.table.Table;
13
14 import com.fasterxml.jackson.annotation.JsonProperty;
15 // TODO Madhu : This is not complete. Getting it in to enable other committers to make progress
16 public class InsertOperation extends Operation {
17     String table;
18     @JsonProperty("uuid-name")
19     public String uuidName;
20     public Table<?> row;
21
22     public InsertOperation() {
23         super();
24         super.setOp("insert");
25     }
26
27     public InsertOperation(String table, String uuidName,
28             Table<?> row) {
29         this();
30         this.table = table;
31         this.uuidName = uuidName;
32         this.row = row;
33     }
34
35     public String getTable() {
36         return table;
37     }
38
39     public void setTable(String table) {
40         this.table = table;
41     }
42
43     public String getUuidName() {
44         return uuidName;
45     }
46
47     public void setUuidName(String uuidName) {
48         this.uuidName = uuidName;
49     }
50
51     public Table<?> getRow() {
52         return row;
53     }
54
55     public void setRow(Table<?> row) {
56         this.row = row;
57     }
58
59     @Override
60     public String toString() {
61         return "InsertOperation [table=" + table + ", uuidName=" + uuidName
62                 + ", row=" + row + ", toString()=" + super.toString() + "]";
63     }
64 }