Interface TypedWriteTransaction<D extends Datastore>

  • Type Parameters:
    D - The logical datastore handled by the transaction.
    All Superinterfaces:
    org.opendaylight.controller.md.sal.common.api.data.AsyncTransaction<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,​org.opendaylight.yangtools.yang.binding.DataObject>, org.opendaylight.yangtools.concepts.Identifiable<java.lang.Object>
    All Known Subinterfaces:
    TypedReadWriteTransaction<D>

    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>
    Write transaction which is specific to a single logical datastore (configuration or operational). Designed for use with ManagedNewTransactionRunner (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>
      void
      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>
      void
      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>
      void
      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>
      void
      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.
      • Methods inherited from interface org.opendaylight.controller.md.sal.common.api.data.AsyncTransaction

        getIdentifier
    • 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:
        WriteTransaction.put(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType, InstanceIdentifier, DataObject)
      • put

        <T extends org.opendaylight.yangtools.yang.binding.DataObject> void 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.
        Type Parameters:
        T - The type of the provided object.
        Parameters:
        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.
        See Also:
        WriteTransaction.put(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType, InstanceIdentifier, DataObject, boolean)
      • 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:
        WriteTransaction.merge(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType, InstanceIdentifier, DataObject)
      • merge

        <T extends org.opendaylight.yangtools.yang.binding.DataObject> void 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.
        Type Parameters:
        T - The type of the provided object.
        Parameters:
        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.
        See Also:
        WriteTransaction.merge(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType, InstanceIdentifier, DataObject, boolean)
      • 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:
        WriteTransaction.delete(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType, InstanceIdentifier)