Class TransactionAdapter


  • @Deprecated(forRemoval=true)
    public final class TransactionAdapter
    extends java.lang.Object
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use TransactionAdapter instead.
    Adapter allowing managed, datastore-constrained transactions to be used with methods expecting generic DataBroker transactions.

    The adapted transactions maintain the following constraints: they cannot be cancelled or submitted (only the transaction manager can do this), and they cannot access a logical datastore other than the one they were created for.

    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static org.opendaylight.mdsal.binding.api.ReadWriteTransaction toReadWriteTransaction​(TypedReadWriteTransaction<? extends Datastore> datastoreTx)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Adapts the given datastore-constrained read-write transaction to a generic read-write transaction.
      static org.opendaylight.mdsal.binding.api.WriteTransaction toWriteTransaction​(TypedWriteTransaction<? extends Datastore> datastoreTx)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Adapts the given datastore-constrained write transaction to a generic write transaction.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toReadWriteTransaction

        public static org.opendaylight.mdsal.binding.api.ReadWriteTransaction toReadWriteTransaction​(TypedReadWriteTransaction<? extends Datastore> datastoreTx)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Adapts the given datastore-constrained read-write transaction to a generic read-write transaction.
        Parameters:
        datastoreTx - The transaction to adapt.
        Returns:
        The adapted transaction.
      • toWriteTransaction

        public static org.opendaylight.mdsal.binding.api.WriteTransaction toWriteTransaction​(TypedWriteTransaction<? extends Datastore> datastoreTx)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Adapts the given datastore-constrained write transaction to a generic write transaction. Note that this can be used to adapt a read-write transaction to a write transaction.
        Parameters:
        datastoreTx - The transaction to adapt.
        Returns:
        The adapted transaction.