Fixing checkstyle issues on Ashwin's initial POC code for the new Schema design.
[ovsdb.git] / ovsdb / src / main / java / org / opendaylight / ovsdb / lib / database / TableSchema.java
index 7efc02a07ed9918e2857ea7d5ef95008b99bc981..cc6a735be37d29acc2eaef5bdd7f18e268924a8a 100644 (file)
@@ -1,12 +1,12 @@
-/*
- * [[ Authors will Fill in the Copyright header ]]
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Authors : Brent Salisbury, Evan Zeller
- */
+/*\r
+ * [[ Authors will Fill in the Copyright header ]]\r
+ *\r
+ * This program and the accompanying materials are made available under the\r
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
+ * and is available at http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Authors : Brent Salisbury, Evan Zeller\r
+ */\r
 package org.opendaylight.ovsdb.lib.database;\r
 \r
 import java.util.Map;\r
@@ -14,19 +14,27 @@ import java.util.Map;
 import com.fasterxml.jackson.annotation.JsonProperty;\r
 \r
 public class TableSchema {\r
+\r
     @JsonProperty("columns")\r
     private Map<String, ColumnSchema> columns;\r
+\r
     @JsonProperty("maxRows")\r
     private Integer maxRows;\r
+\r
     @JsonProperty("isRoot")\r
     private Boolean isRoot;\r
+\r
     @JsonProperty("indexes")\r
     private Object indexes;\r
 \r
-    public Map<String, ColumnSchema> getColumns(){\r
+    public Map<String, ColumnSchema> getColumns() {\r
         return this.columns;\r
     }\r
 \r
+    public ColumnSchema getColumn(String columnName) {\r
+        return this.columns.get(columnName);\r
+    }\r
+\r
     public Integer getMaxRows() {\r
         return maxRows;\r
     }\r