2 * Copyright (c) 2014 Cisco Systems, Inc. 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.spi.data;
10 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
11 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
13 @Deprecated(forRemoval = true)
14 public interface DOMStoreWriteTransaction extends DOMStoreTransaction {
17 * Store a provided data at specified path. This acts as a add / replace
18 * operation, which is to say that whole subtree will be replaced by
22 * If you need add or merge of current object with specified use
23 * {@link #merge(YangInstanceIdentifier, NormalizedNode)}.
25 * @param path the path to write
26 * @param data data object to be written
27 * @throws IllegalStateException
28 * if the client code already sealed transaction and invoked
31 void write(YangInstanceIdentifier path, NormalizedNode<?, ?> data);
34 * Store a provided data at specified path. This acts as a add / replace
35 * operation, which is to say that whole subtree will be replaced by
38 * @param path the path to write
39 * @param data data object to be written
40 * @throws IllegalStateException
41 * if the client code already sealed transaction and invoked
44 void merge(YangInstanceIdentifier path, NormalizedNode<?, ?> data);
47 * Deletes data and whole subtree located at provided path.
49 * @param path path to delete
50 * @throws IllegalStateException
51 * if the client code already sealed transaction and invoked
54 void delete(YangInstanceIdentifier path);
57 * Seals transaction, and returns three-phase commit cohort associated
58 * with this transaction and DOM Store to be coordinated by coordinator.
60 * @return Three Phase Commit Cohort instance for this transaction.
62 DOMStoreThreePhaseCommitCohort ready();