@Beta public abstract class AbstractWriteTransaction<T extends DOMDataTreeWriteTransaction> extends AbstractForwardedTransaction<T>
DOMDataTreeWriteTransaction.| Modifier | Constructor and Description | 
|---|---|
protected  | 
AbstractWriteTransaction(T delegate,
                        BindingToNormalizedNodeCodec codec)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected boolean | 
doCancel()  | 
protected void | 
doDelete(LogicalDatastoreType store,
        InstanceIdentifier<?> path)  | 
protected com.google.common.util.concurrent.CheckedFuture<Void,TransactionCommitFailedException> | 
doSubmit()  | 
protected void | 
ensureParentsByMerge(LogicalDatastoreType store,
                    org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier domPath,
                    InstanceIdentifier<?> path)
Subclasses of this class are required to implement creation of parent nodes based on behavior of their
 underlying transaction. 
 | 
<U extends TreeNode> | 
merge(LogicalDatastoreType store,
     InstanceIdentifier<U> path,
     U data,
     boolean createParents)
Merge Binding data with existing data on specific path via
  
DOMDataTreeWriteTransaction.merge(LogicalDatastoreType, YangInstanceIdentifier, NormalizedNode). | 
<U extends TreeNode> | 
put(LogicalDatastoreType store,
   InstanceIdentifier<U> path,
   U data,
   boolean createParents)
Put Binding data to specific datastore via
  
DOMDataTreeWriteTransaction.put(LogicalDatastoreType, YangInstanceIdentifier, NormalizedNode). | 
doRead, getCodec, getDelegate, getDelegateChecked, getIdentifierprotected AbstractWriteTransaction(T delegate, BindingToNormalizedNodeCodec codec)
public final <U extends TreeNode> void put(LogicalDatastoreType store, InstanceIdentifier<U> path, U data, boolean createParents)
DOMDataTreeWriteTransaction.put(LogicalDatastoreType, YangInstanceIdentifier, NormalizedNode).store - - specific LogicalDatastoreTypepath - - path to datadata - - data to be written to specific pathcreateParents - - option to create parent of data to be writepublic final <U extends TreeNode> void merge(LogicalDatastoreType store, InstanceIdentifier<U> path, U data, boolean createParents)
DOMDataTreeWriteTransaction.merge(LogicalDatastoreType, YangInstanceIdentifier, NormalizedNode).store - - specific LogicalDatastoreTypepath - - path to datadata - - data to be mergedcreateParents - - option to create parent of data to be mergedprotected final void ensureParentsByMerge(LogicalDatastoreType store, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier domPath, InstanceIdentifier<?> path)
store - - an instance of LogicalDatastoreTypedomPath - - an instance of YangInstanceIdentifierpath - - an instance of InstanceIdentifierprotected final void doDelete(LogicalDatastoreType store, InstanceIdentifier<?> path)
protected final com.google.common.util.concurrent.CheckedFuture<Void,TransactionCommitFailedException> doSubmit()
protected final boolean doCancel()
Copyright © 2018 OpenDaylight. All rights reserved.