Interface DOMDataWriteTransaction

  • All Superinterfaces:
    org.opendaylight.controller.md.sal.common.api.data.AsyncTransaction<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,​org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,​?>>, org.opendaylight.controller.md.sal.common.api.data.AsyncWriteTransaction<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,​org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,​?>>, org.opendaylight.yangtools.concepts.Identifiable<Object>
    All Known Subinterfaces:
    DOMDataReadWriteTransaction

    @Deprecated(forRemoval=true)
    public interface DOMDataWriteTransaction
    extends org.opendaylight.controller.md.sal.common.api.data.AsyncWriteTransaction<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,​org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,​?>>
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use DOMDataTreeWriteTransaction instead.
    A transaction that provides mutation capabilities on a data tree.

    For more information on usage and examples, please see the documentation in AsyncWriteTransaction.

    • Field Summary

      • Fields inherited from interface org.opendaylight.controller.md.sal.common.api.data.AsyncWriteTransaction

        SUBMIT_EXCEPTION_MAPPER
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      void delete​(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void merge​(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,​?> data)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Merges a piece of data with the existing data at a specified path.
      void put​(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,​?> data)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Stores a piece of data at the specified path.
      • Methods inherited from interface org.opendaylight.controller.md.sal.common.api.data.AsyncTransaction

        getIdentifier
      • Methods inherited from interface org.opendaylight.controller.md.sal.common.api.data.AsyncWriteTransaction

        cancel, commit, submit
    • Method Detail

      • delete

        void delete​(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
                    org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        delete in interface org.opendaylight.controller.md.sal.common.api.data.AsyncWriteTransaction<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,​org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,​?>>
      • put

        void put​(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
                 org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path,
                 org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,​?> data)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Stores a piece of data at the specified path. This acts as an add / replace operation, which is to say that whole subtree will be replaced by the specified 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.

        Parameters:
        store - the logical data store which should be modified
        path - the data object path
        data - the data object to be written to the specified path
        Throws:
        IllegalStateException - if the transaction has already been submitted