2 * Copyright (c) 2018 Pantheon Technologies, s.r.o. 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
8 package org.opendaylight.controller.sal.core.compat;
10 import org.opendaylight.controller.sal.core.spi.data.DOMStoreReadWriteTransaction;
11 import org.opendaylight.controller.sal.core.spi.data.DOMStoreThreePhaseCommitCohort;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
13 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
16 public class DOMStoreReadWriteTransactionAdapter
17 extends DOMStoreReadTransactionAdapter<org.opendaylight.mdsal.dom.spi.store.DOMStoreReadWriteTransaction>
18 implements DOMStoreReadWriteTransaction {
19 public DOMStoreReadWriteTransactionAdapter(
20 final org.opendaylight.mdsal.dom.spi.store.DOMStoreReadWriteTransaction delegate) {
25 public void write(final YangInstanceIdentifier path, final NormalizedNode<?, ?> data) {
26 delegate().write(path, data);
30 public DOMStoreThreePhaseCommitCohort ready() {
31 return new DOMStoreThreePhaseCommitCohortAdapter(delegate().ready());
35 public void merge(final YangInstanceIdentifier path, final NormalizedNode<?, ?> data) {
36 delegate().merge(path, data);
40 public void delete(final YangInstanceIdentifier path) {
41 delegate().delete(path);