org.eclipse.emf.cdo.transaction
Class CDOTransactionCommentator

java.lang.Object
  extended by org.eclipse.emf.cdo.transaction.CDOTransactionCommentator
All Implemented Interfaces:
Closeable

public class CDOTransactionCommentator
extends Object
implements Closeable

A utility class that, when associated with a transaction, automatically updates the commit comment according to local model modifications.

Since:
4.2

Constructor Summary
CDOTransactionCommentator(CDOTransaction transaction)
           
 
Method Summary
static void appendSummary(StringBuilder builder, CDOCommitContext commitContext)
           
 void close()
           
protected  String createComment(CDOCommitContext commitContext)
           
 CDOTransaction getTransaction()
           
 boolean isClosed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDOTransactionCommentator

public CDOTransactionCommentator(CDOTransaction transaction)
Method Detail

getTransaction

public final CDOTransaction getTransaction()

isClosed

public final boolean isClosed()
Specified by:
isClosed in interface Closeable

close

public void close()
Specified by:
close in interface Closeable

createComment

protected String createComment(CDOCommitContext commitContext)

appendSummary

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


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.