ovsdb enable checkstyle on error
[ovsdb.git] / southbound / southbound-impl / src / main / java / org / opendaylight / ovsdb / southbound / OvsdbSchemaContants.java
1 /*
2  * Copyright (c) 2015 Brocade Communications Systems, Inc. and others.  All rights reserved.
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 package org.opendaylight.ovsdb.southbound;
9
10 public class OvsdbSchemaContants {
11     public static final String databaseName = "Open_vSwitch";
12
13     public enum OvsdbSchemaTables {
14         OPENVSWITCH("Open_vSwitch",null,null),
15         BRIDGE("Bridge", "Open_vSwitch", "bridges"),
16         PORT("Port", "Bridge", "ports"),
17         INTERFACE("Interface", "Port", "interfaces"),
18         SSL("SSL", "Open_vSwitch", "ssl"),
19         IPFIX("IPFIX", "Bridge", "ipfix"),
20         SFLOW("sFlow", "Bridge", "sflow"),
21         FLOWTABLE("Flow_Table", "Bridge", "flow_tables"),
22         QOS("QoS", "Port", "qos"),
23         NETFLOW("NetFlow", "Bridge", "netflow"),
24         MIRROR("Mirror", "Bridge", "mirrors"),
25         MANAGER("Manager", "Open_vSwitch", "manager_options"),
26         CONTROLLER("Controller", "Bridge", "controller"),
27         FLOWSAMPLECOLLECTORSET("Flow_Sample_Collector_Set",null,null),
28         AUTOATTACH("AutoAttach", "Bridge", "auto_attach");
29
30         private final String tableName;
31         private final String parentTableName;
32         private final String columnNameInParentTable;
33
34         OvsdbSchemaTables(
35                 final String tableName, final String parentTableName,
36                 final String columnNameInParentTable) {
37             this.tableName = tableName;
38             this.parentTableName = parentTableName;
39             this.columnNameInParentTable = columnNameInParentTable;
40         }
41
42         public String getTableName() {
43             return this.tableName;
44         }
45
46         public String getParentTableName() {
47             return this.parentTableName;
48         }
49
50         public String getColumnNameInParentTable() {
51             return this.columnNameInParentTable;
52         }
53     }
54
55 }