All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.mdsal.binding.dom.adapter.BindingDOMReadTransactionAdapter Maven / Gradle / Ivy

There is a newer version: 14.0.2
Show 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.binding.dom.adapter;

import com.google.common.util.concurrent.FluentFuture;
import java.util.Optional;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.mdsal.binding.api.QueryReadTransaction;
import org.opendaylight.mdsal.binding.api.query.QueryExpression;
import org.opendaylight.mdsal.binding.api.query.QueryResult;
import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
import org.opendaylight.mdsal.dom.api.DOMDataTreeReadTransaction;
import org.opendaylight.yangtools.binding.DataObject;
import org.opendaylight.yangtools.binding.DataObjectIdentifier;

final class BindingDOMReadTransactionAdapter extends AbstractForwardedTransaction
        implements QueryReadTransaction {
    BindingDOMReadTransactionAdapter(final AdapterContext adapterContext, final DOMDataTreeReadTransaction delegate) {
        super(adapterContext, delegate);
    }

    @Override
    public  FluentFuture> read(final LogicalDatastoreType store,
            final DataObjectIdentifier path) {
        return doRead(getDelegate(), store, path);
    }

    @Override
    public FluentFuture exists(final LogicalDatastoreType store, final DataObjectIdentifier path) {
        return doExists(getDelegate(), store, path);
    }

    @Override
    public  FluentFuture> execute(final LogicalDatastoreType store,
            final QueryExpression query) {
        return doExecute(getDelegate(), store, query);
    }

    @Override
    public void close() {
        getDelegate().close();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy