Class CDOTransactionCommentator

java.lang.Object
org.eclipse.emf.cdo.transaction.CDOTransactionCommentator
All Implemented Interfaces:
org.eclipse.net4j.util.collection.Closeable

public class CDOTransactionCommentator extends Object implements org.eclipse.net4j.util.collection.Closeable
A utility class that, when associated with a transaction, automatically updates the commit comment according to local model modifications.
Since:
4.2
Author:
Eike Stepper
  • Field Details

  • Constructor Details

    • CDOTransactionCommentator

      public CDOTransactionCommentator(CDOTransaction transaction)
    • CDOTransactionCommentator

      public CDOTransactionCommentator(CDOTransaction transaction, boolean showMerges)
      Since:
      4.6
  • Method Details

    • getTransaction

      public final CDOTransaction getTransaction()
    • isShowMerges

      public final boolean isShowMerges()
      Since:
      4.6
    • setShowMerges

      public final void setShowMerges(boolean showMerges)
      Since:
      4.6
    • isClosed

      public final boolean isClosed()
      Specified by:
      isClosed in interface org.eclipse.net4j.util.collection.Closeable
    • close

      public void close()
      Specified by:
      close in interface org.eclipse.net4j.util.collection.Closeable
    • createComment

      protected String createComment(CDOCommitContext commitContext)
    • setRevertComment

      public static boolean setRevertComment(CDOTransaction transaction, CDOBranchPoint revertTo)
      Since:
      4.16
    • appendMerge

      public static boolean appendMerge(StringBuilder builder, CDOBranchPoint mergeSource)
      Since:
      4.6
    • appendBranchPoint

      public static boolean appendBranchPoint(StringBuilder builder, CDOBranchPoint branchPoint)
      Since:
      4.15
    • appendSummary

      public static void appendSummary(StringBuilder builder, CDOCommitContext commitContext)
      Since:
      4.2
    • appendSummary

      public static boolean appendSummary(StringBuilder builder, CDOCommitContext commitContext, boolean showMerges)
      Since:
      4.6