Added more ignorable files to .gitignore
[ovsdb.git] / library / src / main / java / org / opendaylight / ovsdb / lib / database / TableSchema.java
1 /*
2  * [[ Authors will Fill in the Copyright header ]]
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 : Brent Salisbury, Evan Zeller
9  */
10 package org.opendaylight.ovsdb.lib.database;
11
12 import java.util.Map;
13
14 import com.fasterxml.jackson.annotation.JsonProperty;
15
16 public class TableSchema {
17
18     @JsonProperty("columns")
19     private Map<String, ColumnSchema> columns;
20
21     @JsonProperty("maxRows")
22     private Integer maxRows;
23
24     @JsonProperty("isRoot")
25     private Boolean isRoot;
26
27     @JsonProperty("indexes")
28     private Object indexes;
29
30     public Map<String, ColumnSchema> getColumns() {
31         return this.columns;
32     }
33
34     public ColumnSchema getColumn(String columnName) {
35         return this.columns.get(columnName);
36     }
37
38     public Integer getMaxRows() {
39         return maxRows;
40     }
41
42     public Boolean getIsRoot() {
43         return isRoot;
44     }
45
46     public Object getIndexes() {
47         return indexes;
48     }
49
50     @Override
51     public String toString() {
52         return "TableSchema [columns=" + columns + ", maxRows=" + maxRows
53                 + ", isRoot=" + isRoot + ", indexes=" + indexes + "]";
54     }
55 }