a91b8c982914d2b4e9f5b227664eb830b9bb2d8d
[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 /**
11  *
12  * @author Anil Vishnoi (avishnoi@brocade.com)
13  *
14  */
15 public class OvsdbSchemaContants {
16     public static final String databaseName = "Open_vSwitch";
17     public enum OVSDBSCHEMATABLES {
18         OPENVSWITCH("Open_vSwitch",null,null),
19         BRIDGE("Bridge", "Open_vSwitch", "bridges"),
20         PORT("Port", "Bridge", "ports"),
21         INTERFACE("Interface", "Port", "interfaces"),
22         SSL("SSL", "Open_vSwitch", "ssl"),
23         IPFIX("IPFIX", "Bridge", "ipfix"),
24         SFLOW("sFlow", "Bridge", "sflow"),
25         FLOWTABLE("Flow_Table", "Bridge", "flow_tables"),
26         QOS("QoS", "Port", "qos"),
27         NETFLOW("NetFlow", "Bridge", "netflow"),
28         MIRROR("Mirror", "Bridge", "mirrors"),
29         MANAGER("Manager", "Open_vSwitch", "manager_options"),
30         CONTROLLER("Controller", "Bridge", "controller"),
31         FLOWSAMPLECOLLECTORSET("Flow_Sample_Collector_Set",null,null),
32         AUTOATTACH("AutoAttach", "Bridge", "auto_attach");
33
34         private final String tableName;
35         private final String parentTableName;
36         private final String columnNameInParentTable;
37
38         OVSDBSCHEMATABLES(
39                 final String tableName, final String parentTableName,
40                 final String columnNameInParentTable) {
41             this.tableName = tableName;
42             this.parentTableName = parentTableName;
43             this.columnNameInParentTable = columnNameInParentTable;
44         }
45
46         public String getTableName() {
47             return this.tableName;
48         }
49
50         public String getParentTableName() {
51             return this.parentTableName;
52         }
53
54         public String getColumnNameInParentTable() {
55             return this.columnNameInParentTable;
56         }
57     }
58
59 }