/* * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others. All rights reserved. * * 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 */ package org.opendaylight.ovsdb.hwvtepsouthbound.transactions.md; import org.opendaylight.ovsdb.hwvtepsouthbound.HwvtepConnectionInstance; import org.opendaylight.ovsdb.lib.message.TableUpdates; import org.opendaylight.ovsdb.lib.schema.DatabaseSchema; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.ConnectionInfo; public abstract class AbstractTransactionCommand implements TransactionCommand{ private TableUpdates updates; private DatabaseSchema dbSchema; private HwvtepConnectionInstance key; public TableUpdates getUpdates() { return updates; } public DatabaseSchema getDbSchema() { return dbSchema; } public ConnectionInfo getConnectionInfo() { return key.getMDConnectionInfo(); } public HwvtepConnectionInstance getOvsdbConnectionInstance() { return key; } protected AbstractTransactionCommand() { // NO OP } public AbstractTransactionCommand(HwvtepConnectionInstance key,TableUpdates updates, DatabaseSchema dbSchema) { this.updates = updates; this.dbSchema = dbSchema; this.key = key; } }