/* * Copyright (c) 2014 Cisco Systems, Inc. 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.mdsal.binding.dom.adapter; import com.google.common.util.concurrent.CheckedFuture; import org.opendaylight.mdsal.binding.api.WriteTransaction; import org.opendaylight.mdsal.common.api.LogicalDatastoreType; import org.opendaylight.mdsal.common.api.TransactionCommitFailedException; import org.opendaylight.mdsal.dom.api.DOMDataTreeWriteTransaction; import org.opendaylight.yangtools.yang.binding.DataObject; import org.opendaylight.yangtools.yang.binding.InstanceIdentifier; class BindingDOMWriteTransactionAdapter extends AbstractWriteTransaction implements WriteTransaction { protected BindingDOMWriteTransactionAdapter(final T delegateTx, final BindingToNormalizedNodeCodec codec) { super(delegateTx, codec); } @Override public void put(final LogicalDatastoreType store, final InstanceIdentifier path, final U data) { put(store, path, data,false); } @Override public void merge(final LogicalDatastoreType store, final InstanceIdentifier path, final D data) { merge(store, path, data,false); } @Override public void delete(final LogicalDatastoreType store, final InstanceIdentifier path) { doDelete( store, path); } @Override public CheckedFuture submit() { return doSubmit(); } @Override public boolean cancel() { return doCancel(); } }