public interface DOMDataWriteTransaction extends AsyncWriteTransaction<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
For more information on usage and examples, please see the documentation in AsyncWriteTransaction
.
SUBMIT_EXCEPTION_MAPPER
Modifier and Type | Method and Description |
---|---|
void |
delete(LogicalDatastoreType store,
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path)
Removes a piece of data from specified path.
|
void |
merge(LogicalDatastoreType store,
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path,
org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> data)
Merges a piece of data with the existing data at a specified path.
|
void |
put(LogicalDatastoreType store,
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path,
org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> data)
Stores a piece of data at the specified path.
|
cancel, commit, submit
getIdentifier
void delete(LogicalDatastoreType store, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path)
AsyncWriteTransaction
delete
in interface AsyncWriteTransaction<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
store
- Logical data store which should be modifiedpath
- Data object pathvoid put(LogicalDatastoreType store, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> 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.
store
- the logical data store which should be modifiedpath
- the data object pathdata
- the data object to be written to the specified pathIllegalStateException
- if the transaction has already been submittedvoid merge(LogicalDatastoreType store, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> data)
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.
store
- the logical data store which should be modifiedpath
- the data object pathdata
- the data object to be merged to the specified pathIllegalStateException
- if the transaction has already been submittedCopyright © 2019 OpenDaylight. All rights reserved.