X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-spi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2Fspi%2Fdata%2FDOMStoreWriteTransaction.java;h=b760262f39248a583a810df03d6541fb40141cb3;hp=6761bc1968778a8894c1a475176b66c054ce92ed;hb=3ec97cd0a86ad1b79f6854dc6924eb7b06e359a3;hpb=11de48616ef1104c24e04e6ca837956651e5f979 diff --git a/opendaylight/md-sal/sal-dom-spi/src/main/java/org/opendaylight/controller/sal/core/spi/data/DOMStoreWriteTransaction.java b/opendaylight/md-sal/sal-dom-spi/src/main/java/org/opendaylight/controller/sal/core/spi/data/DOMStoreWriteTransaction.java index 6761bc1968..b760262f39 100644 --- a/opendaylight/md-sal/sal-dom-spi/src/main/java/org/opendaylight/controller/sal/core/spi/data/DOMStoreWriteTransaction.java +++ b/opendaylight/md-sal/sal-dom-spi/src/main/java/org/opendaylight/controller/sal/core/spi/data/DOMStoreWriteTransaction.java @@ -7,11 +7,10 @@ */ package org.opendaylight.controller.sal.core.spi.data; -import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType; -import org.opendaylight.yangtools.concepts.Path; -import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier; +import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode; +@Deprecated public interface DOMStoreWriteTransaction extends DOMStoreTransaction { /** @@ -19,34 +18,42 @@ public interface DOMStoreWriteTransaction extends DOMStoreTransaction { * operation, which is to say that whole subtree will be replaced by * specified path. * + *

* If you need add or merge of current object with specified use - * {@link #merge(LogicalDatastoreType, Path, Object)} - * - * - * @param path - * @param data - * Data object to be written + * {@link #merge(YangInstanceIdentifier, NormalizedNode)}. * + * @param path the path to write + * @param data data object to be written * @throws IllegalStateException * if the client code already sealed transaction and invoked * {@link #ready()} */ - void write(InstanceIdentifier path, NormalizedNode data); + void write(YangInstanceIdentifier path, NormalizedNode data); /** + * Store a provided data at specified path. This acts as a add / replace + * operation, which is to say that whole subtree will be replaced by + * specified path. * + * @param path the path to write + * @param data data object to be written + * @throws IllegalStateException + * if the client code already sealed transaction and invoked + * {@link #ready()} + */ + void merge(YangInstanceIdentifier path, NormalizedNode data); + + /** * Deletes data and whole subtree located at provided path. * - * @param path - * Path to delete + * @param path path to delete * @throws IllegalStateException * if the client code already sealed transaction and invoked * {@link #ready()} */ - void delete(InstanceIdentifier path); + void delete(YangInstanceIdentifier path); /** - * * Seals transaction, and returns three-phase commit cohort associated * with this transaction and DOM Store to be coordinated by coordinator. *