Added more ignorable files to .gitignore
[ovsdb.git] / ovsdb / src / main / java / org / opendaylight / ovsdb / lib / database / TableSchema.java
1 /*\r
2  * [[ Authors will Fill in the Copyright header ]]\r
3  *\r
4  * This program and the accompanying materials are made available under the\r
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
6  * and is available at http://www.eclipse.org/legal/epl-v10.html\r
7  *\r
8  * Authors : Brent Salisbury, Evan Zeller\r
9  */\r
10 package org.opendaylight.ovsdb.lib.database;\r
11 \r
12 import java.util.Map;\r
13 \r
14 import com.fasterxml.jackson.annotation.JsonProperty;\r
15 \r
16 public class TableSchema {\r
17 \r
18     @JsonProperty("columns")\r
19     private Map<String, ColumnSchema> columns;\r
20 \r
21     @JsonProperty("maxRows")\r
22     private Integer maxRows;\r
23 \r
24     @JsonProperty("isRoot")\r
25     private Boolean isRoot;\r
26 \r
27     @JsonProperty("indexes")\r
28     private Object indexes;\r
29 \r
30     public Map<String, ColumnSchema> getColumns() {\r
31         return this.columns;\r
32     }\r
33 \r
34     public ColumnSchema getColumn(String columnName) {\r
35         return this.columns.get(columnName);\r
36     }\r
37 \r
38     public Integer getMaxRows() {\r
39         return maxRows;\r
40     }\r
41 \r
42     public Boolean getIsRoot() {\r
43         return isRoot;\r
44     }\r
45 \r
46     public Object getIndexes() {\r
47         return indexes;\r
48     }\r
49 \r
50     @Override\r
51     public String toString() {\r
52         return "TableSchema [columns=" + columns + ", maxRows=" + maxRows\r
53                 + ", isRoot=" + isRoot + ", indexes=" + indexes + "]";\r
54     }\r
55 }\r