Interface CDOFileTransaction

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 CDOFileTransaction extends CDOTransaction
A transaction whose uncommitted changes can be persisted in a local file and explicitly pushed to the repository. A normal CDOUserTransaction.commit() exports changes to the file and does not commit to the repository. Repository persistence is performed only by push().

The inherited CDOUserTransaction.rollback() operation is not supported, and inherited commit overloads that accept a callable or runnable are rejected because they cannot provide unambiguous local-export semantics.

Since:
4.30
Author:
Eike Stepper
No Implement
This interface is not intended to be implemented by clients.
No Extend
This interface is not intended to be extended by clients.
  • Method Details

    • getFile

      File getFile()
      Returns the stable backing file of this transaction.
      Returns:
      the backing file.
    • push

      void push() throws CommitException
      Commits the transaction's changes to the repository and removes the persisted file.
      Throws:
      CommitException - if the repository commit fails.
    • push

      void push(IProgressMonitor monitor) throws CommitException
      Commits the transaction's changes to the repository and removes the persisted file.
      Parameters:
      monitor - the progress monitor, or null.
      Throws:
      CommitException - if the repository commit fails.