Package org.opendaylight.genius.infra
Interface TypedWriteTransaction<D extends Datastore>
-
- Type Parameters:
D
- The logical datastore handled by the transaction.
- All Superinterfaces:
org.opendaylight.yangtools.concepts.Identifiable<java.lang.Object>
,org.opendaylight.mdsal.binding.api.Transaction
- All Known Subinterfaces:
TypedReadWriteTransaction<D>
public interface TypedWriteTransaction<D extends Datastore> extends org.opendaylight.mdsal.binding.api.Transaction
Write transaction which is specific to a single logical datastore (configuration or operational). Designed for use withManagedNewTransactionRunner
(it doesn’t support explicit cancel or commit operations).- See Also:
WriteTransaction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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>
voidmerge(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>
voidmergeParentStructureMerge(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data)
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>
voidmergeParentStructurePut(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data)
Writes an object to the given path, creating missing parents if requested.<T extends org.opendaylight.yangtools.yang.binding.DataObject>
voidput(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data)
Writes an object to the given path.
-
-
-
Method Detail
-
put
<T extends org.opendaylight.yangtools.yang.binding.DataObject> void put(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data)
Writes an object to the given path.- Type Parameters:
T
- The type of the provided object.- Parameters:
path
- The path to write to.data
- The object to write.- See Also:
)
-
mergeParentStructurePut
<T extends org.opendaylight.yangtools.yang.binding.DataObject> void mergeParentStructurePut(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data)
Writes an object to the given path, creating missing parents if requested.- Type Parameters:
T
- The type of the provided object.- Parameters:
path
- The path to write to.data
- The object to write.- See Also:
WriteOperations.put(LogicalDatastoreType, InstanceIdentifier, DataObject)
-
merge
<T extends org.opendaylight.yangtools.yang.binding.DataObject> void merge(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data)
Merges an object with the data already present at the given path.- Type Parameters:
T
- The type of the provided object.- Parameters:
path
- The path to write to.data
- The object to merge.- See Also:
WriteOperations.merge(LogicalDatastoreType, InstanceIdentifier, DataObject)
-
mergeParentStructureMerge
<T extends org.opendaylight.yangtools.yang.binding.DataObject> void mergeParentStructureMerge(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data)
Merges an object with the data already present at the given path, creating missing parents if requested.- Type Parameters:
T
- The type of the provided object.- Parameters:
path
- The path to write to.data
- The object to merge.- See Also:
WriteOperations.merge(LogicalDatastoreType, InstanceIdentifier, DataObject)
-
delete
void delete(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
Deletes the object present at the given path.- Parameters:
path
- The path to delete.- See Also:
WriteOperations.delete(LogicalDatastoreType, InstanceIdentifier)
-
-