Interface DelegatingCDOTransaction

All Superinterfaces:
AutoCloseable, CDOBranchPoint, CDOBranchProvider, CDOChangeSetDataProvider, CDOCommitHistory.Provider<CDOObject,CDOObjectHistory>, CDOCommonTransaction, CDOCommonView, CDORevisionProvider, CDORollbackable, CDOTimeProvider, CDOTransaction, CDOUpdatable, CDOUserTransaction, CDOView, org.eclipse.net4j.util.collection.Closeable, IAdaptable, org.eclipse.net4j.util.container.IContainer<CDOResourceNode>, org.eclipse.net4j.util.event.INotifier, org.eclipse.net4j.util.options.IOptionsContainer, org.eclipse.net4j.util.properties.IPropertiesContainer

public interface DelegatingCDOTransaction extends CDOTransaction
SPI for a transaction wrapper that exposes exactly one delegation level.
Since:
4.30
Author:
Eike Stepper
  • Method Details

    • getDelegate

      CDOTransaction getDelegate()
      Returns the directly wrapped transaction.
      Returns:
      the delegate, without recursively unwrapping it.
    • getEffectiveTransaction

      static CDOTransaction getEffectiveTransaction(CDOTransaction transaction)
      Resolves a wrapper chain to its effective non-delegating transaction. Identity-based cycle detection makes malformed cyclic chains terminate deterministically.
      Parameters:
      transaction - the transaction or wrapper to resolve.
      Returns:
      the effective transaction, or the last safely reachable wrapper.