2 * [[ Authors will Fill in the Copyright header ]]
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
8 * Authors : Brent Salisbury, Evan Zeller
10 package org.opendaylight.ovsdb.lib.database;
14 import com.fasterxml.jackson.annotation.JsonProperty;
16 public class DatabaseSchema {
20 @JsonProperty("version")
21 private String version;
23 @JsonProperty("cksum")
26 @JsonProperty("tables")
27 private Map<String, TableSchema> tables;
29 public String getName() {
33 public String getVersion() {
37 public String getCksum() {
41 public Map<String, TableSchema> getTables() {
45 public TableSchema getTable(String tableName) {
46 return tables.get(tableName);
50 public String toString() {
51 return "DatabaseSchema [name=" + name + ", version=" + version
52 + ", cksum=" + cksum + ", tables=" + tables + "]";