D
- The logical datastore handled by the transaction.public interface TypedWriteTransaction<D extends Datastore>
extends org.opendaylight.controller.md.sal.common.api.data.AsyncTransaction<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,org.opendaylight.yangtools.yang.binding.DataObject>
ManagedNewTransactionRunner
(it doesn’t support explicit cancel or commit operations).WriteTransaction
Modifier and Type | Method and Description |
---|---|
void |
delete(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
Deletes the object present at the given path.
|
<T extends org.opendaylight.yangtools.yang.binding.DataObject> |
merge(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path,
T data)
Merges an object with the data already present at the given path.
|
<T extends org.opendaylight.yangtools.yang.binding.DataObject> |
merge(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path,
T data,
boolean createMissingParents)
Merges an object with the data already present at the given path, creating missing parents if requested.
|
<T extends org.opendaylight.yangtools.yang.binding.DataObject> |
put(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path,
T data)
Writes an object to the given path.
|
<T extends org.opendaylight.yangtools.yang.binding.DataObject> |
put(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path,
T data,
boolean createMissingParents)
Writes an object to the given path, creating missing parents if requested.
|
<T extends org.opendaylight.yangtools.yang.binding.DataObject> void put(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data)
T
- The type of the provided object.path
- The path to write to.data
- The object to write.WriteTransaction.put(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType,
InstanceIdentifier, DataObject)
<T extends org.opendaylight.yangtools.yang.binding.DataObject> void put(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data, boolean createMissingParents)
T
- The type of the provided object.path
- The path to write to.data
- The object to write.createMissingParents
- WriteTransaction.CREATE_MISSING_PARENTS
to create missing parents,
WriteTransaction.FAIL_ON_MISSING_PARENTS
to fail if parents are missing.WriteTransaction.put(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType,
InstanceIdentifier, DataObject, boolean)
<T extends org.opendaylight.yangtools.yang.binding.DataObject> void merge(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data)
T
- The type of the provided object.path
- The path to write to.data
- The object to merge.WriteTransaction.merge(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType,
InstanceIdentifier, DataObject)
<T extends org.opendaylight.yangtools.yang.binding.DataObject> void merge(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data, boolean createMissingParents)
T
- The type of the provided object.path
- The path to write to.data
- The object to merge.createMissingParents
- WriteTransaction.CREATE_MISSING_PARENTS
to create missing parents,
WriteTransaction.FAIL_ON_MISSING_PARENTS
to fail if parents are missing.WriteTransaction.merge(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType,
InstanceIdentifier, DataObject, boolean)
void delete(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
path
- The path to delete.WriteTransaction.delete(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType,
InstanceIdentifier)
Copyright © 2019 OpenDaylight. All rights reserved.