2 * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
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
9 package org.opendaylight.ovsdb.hwvtepsouthbound.transactions.md;
11 import org.opendaylight.ovsdb.hwvtepsouthbound.HwvtepConnectionInstance;
12 import org.opendaylight.ovsdb.lib.message.TableUpdates;
13 import org.opendaylight.ovsdb.lib.schema.DatabaseSchema;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.ConnectionInfo;
16 public abstract class AbstractTransactionCommand implements TransactionCommand{
18 private TableUpdates updates;
19 private DatabaseSchema dbSchema;
20 private HwvtepConnectionInstance key;
22 public TableUpdates getUpdates() {
26 public DatabaseSchema getDbSchema() {
30 public ConnectionInfo getConnectionInfo() {
31 return key.getMDConnectionInfo();
34 public HwvtepConnectionInstance getOvsdbConnectionInstance() {
38 protected AbstractTransactionCommand() {
42 public AbstractTransactionCommand(HwvtepConnectionInstance key,TableUpdates updates, DatabaseSchema dbSchema) {
43 this.updates = updates;
44 this.dbSchema = dbSchema;