Class TransactionAdapter


  • @Deprecated
    public final class TransactionAdapter
    extends java.lang.Object
    Deprecated.
    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 Detail

      • toReadWriteTransaction

        public static org.opendaylight.mdsal.binding.api.ReadWriteTransaction toReadWriteTransaction​(TypedReadWriteTransaction<? extends Datastore> datastoreTx)
        Deprecated.
        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.
        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.