D
- The logical datastore handled by the transaction.public interface TypedWriteTransaction<D extends Datastore> extends Transaction
ManagedNewTransactionRunner
(it doesn’t support explicit cancel or commit operations).WriteOperations
Modifier and Type | Method and Description |
---|---|
void |
delete(InstanceIdentifier<?> path)
Deletes the object present at the given path.
|
<T extends DataObject> |
merge(InstanceIdentifier<T> path,
T data)
Merges an object with the data already present at the given path.
|
<T extends DataObject> |
merge(InstanceIdentifier<T> path,
T data,
boolean createMissingParents)
Deprecated.
|
default <T extends DataObject> |
mergeParentStructureMerge(InstanceIdentifier<T> path,
T data)
Merges an object with the data already present at the given path, creating missing parents if requested.
|
default <T extends DataObject> |
mergeParentStructurePut(InstanceIdentifier<T> path,
T data)
Writes an object to the given path, creating significant parents, like presence containers and list entries,
if needed.
|
<T extends DataObject> |
put(InstanceIdentifier<T> path,
T data)
Writes an object to the given path.
|
<T extends DataObject> |
put(InstanceIdentifier<T> path,
T data,
boolean createMissingParents)
Deprecated.
|
<T extends DataObject> void put(InstanceIdentifier<T> path, T data)
T
- The type of the provided object.path
- The path to write to.data
- The object to write.WriteOperations.put(LogicalDatastoreType, InstanceIdentifier, DataObject)
@Deprecated <T extends DataObject> void put(InstanceIdentifier<T> path, T data, boolean createMissingParents)
put(InstanceIdentifier, DataObject)
or
mergeParentStructurePut(InstanceIdentifier, DataObject)
instead.T
- The type of the provided object.path
- The path to write to.data
- The object to write.createMissingParents
- WriteOperations.CREATE_MISSING_PARENTS
to create missing parents,
WriteOperations.FAIL_ON_MISSING_PARENTS
to fail if parents are missing.WriteOperations.put(LogicalDatastoreType, InstanceIdentifier, DataObject, boolean)
@Beta default <T extends DataObject> void mergeParentStructurePut(InstanceIdentifier<T> path, T data)
T
- The type of the provided object.path
- The path to write to.data
- The object to write.WriteOperations.mergeParentStructurePut(LogicalDatastoreType, InstanceIdentifier, DataObject)
<T extends DataObject> void merge(InstanceIdentifier<T> path, T data)
T
- The type of the provided object.path
- The path to write to.data
- The object to merge.WriteOperations.merge(LogicalDatastoreType, InstanceIdentifier, DataObject)
@Deprecated <T extends DataObject> void merge(InstanceIdentifier<T> path, T data, boolean createMissingParents)
merge(InstanceIdentifier, DataObject)
or
mergeParentStructureMerge(InstanceIdentifier, DataObject)
instead.T
- The type of the provided object.path
- The path to write to.data
- The object to merge.createMissingParents
- WriteOperations.CREATE_MISSING_PARENTS
to create missing parents,
WriteOperations.FAIL_ON_MISSING_PARENTS
to fail if parents are missing.WriteOperations.merge(LogicalDatastoreType, InstanceIdentifier, DataObject, boolean)
@Beta default <T extends DataObject> void mergeParentStructureMerge(InstanceIdentifier<T> path, T data)
T
- The type of the provided object.path
- The path to write to.data
- The object to merge.WriteOperations.merge(LogicalDatastoreType, InstanceIdentifier, DataObject, boolean)
void delete(InstanceIdentifier<?> path)
path
- The path to delete.WriteOperations.delete(LogicalDatastoreType, InstanceIdentifier)
Copyright © 2019 OpenDaylight. All rights reserved.