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;
15 public class DOMStoreReadWriteTransactionAdapter
16 extends DOMStoreReadTransactionAdapter<org.opendaylight.mdsal.dom.spi.store.DOMStoreReadWriteTransaction>
17 implements DOMStoreReadWriteTransaction {
18 public DOMStoreReadWriteTransactionAdapter(
19 final org.opendaylight.mdsal.dom.spi.store.DOMStoreReadWriteTransaction delegate) {
24 public void write(final YangInstanceIdentifier path, final NormalizedNode<?, ?> data) {
25 delegate().write(path, data);
29 public DOMStoreThreePhaseCommitCohort ready() {
30 return new DOMStoreThreePhaseCommitCohortAdapter(delegate().ready());
34 public void merge(final YangInstanceIdentifier path, final NormalizedNode<?, ?> data) {
35 delegate().merge(path, data);
39 public void delete(final YangInstanceIdentifier path) {
40 delegate().delete(path);