Interface DOMDataWriteTransaction
-
- All Superinterfaces:
AsyncTransaction<YangInstanceIdentifier,NormalizedNode<?,?>>
,AsyncWriteTransaction<YangInstanceIdentifier,NormalizedNode<?,?>>
,Identifiable<Object>
- All Known Subinterfaces:
DOMDataReadWriteTransaction
- All Known Implementing Classes:
ForwardingDOMDataReadWriteTransaction
,ForwardingDOMDataWriteTransaction
@Deprecated(forRemoval=true) public interface DOMDataWriteTransaction extends AsyncWriteTransaction<YangInstanceIdentifier,NormalizedNode<?,?>>
Deprecated, for removal: This API element is subject to removal in a future version.UseDOMDataTreeWriteTransaction
instead.A transaction that provides mutation capabilities on a data tree.For more information on usage and examples, please see the documentation in
AsyncWriteTransaction
.
-
-
Field Summary
-
Fields inherited from interface org.opendaylight.controller.md.sal.common.api.data.AsyncWriteTransaction
SUBMIT_EXCEPTION_MAPPER
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
delete(LogicalDatastoreType store, YangInstanceIdentifier path)
Deprecated, for removal: This API element is subject to removal in a future version.Removes a piece of data from specified path.void
merge(LogicalDatastoreType store, YangInstanceIdentifier path, NormalizedNode<?,?> data)
Deprecated, for removal: This API element is subject to removal in a future version.Merges a piece of data with the existing data at a specified path.void
put(LogicalDatastoreType store, YangInstanceIdentifier path, NormalizedNode<?,?> data)
Deprecated, for removal: This API element is subject to removal in a future version.Stores a piece of data at the specified path.-
Methods inherited from interface org.opendaylight.controller.md.sal.common.api.data.AsyncTransaction
getIdentifier
-
Methods inherited from interface org.opendaylight.controller.md.sal.common.api.data.AsyncWriteTransaction
cancel, commit, submit
-
-
-
-
Method Detail
-
delete
void delete(LogicalDatastoreType store, YangInstanceIdentifier path)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AsyncWriteTransaction
Removes a piece of data from specified path. This operation does not fail if the specified path does not exist.- Specified by:
delete
in interfaceAsyncWriteTransaction<YangInstanceIdentifier,NormalizedNode<?,?>>
- Parameters:
store
- Logical data store which should be modifiedpath
- Data object path
-
put
void put(LogicalDatastoreType store, YangInstanceIdentifier path, NormalizedNode<?,?> data)
Deprecated, for removal: This API element is subject to removal in a future version.Stores a piece of data at the specified path. This acts as an add / replace operation, which is to say that whole subtree will be replaced by the specified data.For more information on usage and examples, please see the documentation in
AsyncWriteTransaction
.If you need to make sure that a parent object exists but you do not want modify its pre-existing state by using put, consider using
merge(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?, ?>)
instead.- Parameters:
store
- the logical data store which should be modifiedpath
- the data object pathdata
- the data object to be written to the specified path- Throws:
IllegalStateException
- if the transaction has already been submitted
-
merge
void merge(LogicalDatastoreType store, YangInstanceIdentifier path, NormalizedNode<?,?> data)
Deprecated, for removal: This API element is subject to removal in a future version.Merges a piece of data with the existing data at a specified path. Any pre-existing data which is not explicitly overwritten will be preserved. This means that if you store a container, its child lists will be merged.For more information on usage and examples, please see the documentation in
AsyncWriteTransaction
.If you require an explicit replace operation, use
put(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?, ?>)
instead.- Parameters:
store
- the logical data store which should be modifiedpath
- the data object pathdata
- the data object to be merged to the specified path- Throws:
IllegalStateException
- if the transaction has already been submitted
-
-