org.opendaylight.mdsal.dom.spi.ForwardingDOMDataWriteTransaction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mdsal-dom-spi Show documentation
Show all versions of mdsal-dom-spi Show documentation
MD-SAL DOM service provider interfaces
The newest version!
/*
* 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.dom.spi;
import com.google.common.collect.ForwardingObject;
import com.google.common.util.concurrent.FluentFuture;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.mdsal.common.api.CommitInfo;
import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
import org.opendaylight.mdsal.dom.api.DOMDataTreeWriteTransaction;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
/**
* Utility {@link DOMDataTreeWriteTransaction} implementation which forwards all interface
* method invocation to a delegate instance.
*/
public abstract class ForwardingDOMDataWriteTransaction extends ForwardingObject
implements DOMDataTreeWriteTransaction {
@Override
protected abstract @NonNull DOMDataTreeWriteTransaction delegate();
@Override
public Object getIdentifier() {
return delegate().getIdentifier();
}
@Override
public void put(final LogicalDatastoreType store, final YangInstanceIdentifier path, final NormalizedNode data) {
delegate().put(store, path, data);
}
@Override
public void merge(final LogicalDatastoreType store, final YangInstanceIdentifier path, final NormalizedNode data) {
delegate().merge(store, path, data);
}
@Override
public boolean cancel() {
return delegate().cancel();
}
@Override
public void delete(final LogicalDatastoreType store, final YangInstanceIdentifier path) {
delegate().delete(store, path);
}
@Override
public FluentFuture> completionFuture() {
return delegate().completionFuture();
}
@Override
public FluentFuture extends CommitInfo> commit() {
return delegate().commit();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy