Class DragTransactionManager<T extends DragTransaction>

java.lang.Object
org.oddjob.arooa.parsing.DragTransactionManager<T>
Type Parameters:
T - The Transaction type being managed.

public class DragTransactionManager<T extends DragTransaction> extends Object
Provides management of a DragTransaction. This was created by extracting functionality from the local DragContext so that it could also be used by Oddjob's remote handler to fix a bug where delete wasn't happening before paste so id's were duplicated when dragging within a server container. There is lots of Threading stuff that in hindsight might not have been necessary.
  • Constructor Details

    • DragTransactionManager

      public DragTransactionManager(Supplier<? extends T> transactionSupplier)
  • Method Details

    • withTransaction

      public void withTransaction(Consumer<? super T> transactionConsumer)
    • createTransaction

      public DragTransaction createTransaction(ChangeHow how)