Package org.eclipse.emf.cdo.transaction

# Klasse CDOTransactionCommentator

java.lang.Object
org.eclipse.emf.cdo.transaction.CDOTransactionCommentator

Alle implementierten Schnittstellen:
  `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.

Seit:
  4.2
Autor:
  Eike Stepper

## Feldübersicht

Felder
Modifizierer und Typ
Feld
Beschreibung
`static final String`
`MERGE_PREFIX`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`CDOTransactionCommentator(CDOTransaction transaction)`
`CDOTransactionCommentator(CDOTransaction transaction, boolean showMerges)`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`static boolean`
`appendBranchPoint(StringBuilder builder, CDOBranchPoint branchPoint)`
`static boolean`
`appendMerge(StringBuilder builder, CDOBranchPoint mergeSource)`
`static void`
`appendSummary(StringBuilder builder, CDOCommitContext commitContext)`
`static boolean`
`appendSummary(StringBuilder builder, CDOCommitContext commitContext, boolean showMerges)`
`void`
`close()`
`protected String`
`createComment(CDOCommitContext commitContext)`
`final CDOTransaction`
`getTransaction()`
`final boolean`
`isClosed()`
`final boolean`
`isShowMerges()`
`static boolean`
`setRevertComment(CDOTransaction transaction, CDOBranchPoint revertTo)`
`final void`
`setShowMerges(boolean showMerges)`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Felddetails

### MERGE_PREFIX

public static final String MERGE_PREFIX

Seit:
  4.6
Siehe auch:
  - Konstantenfeldwerte

## Konstruktordetails

### CDOTransactionCommentator

public CDOTransactionCommentator(CDOTransaction transaction)

### CDOTransactionCommentator

public CDOTransactionCommentator(CDOTransaction transaction, boolean showMerges)

Seit:
  4.6

## Methodendetails

### getTransaction

public final CDOTransaction getTransaction()

### isShowMerges

public final boolean isShowMerges()

Seit:
  4.6

### setShowMerges

public final void setShowMerges(boolean showMerges)

Seit:
  4.6

### isClosed

public final boolean isClosed()

Angegeben von:
  `isClosed` in Schnittstelle `org.eclipse.net4j.util.collection.Closeable`

### close

public void close()

Angegeben von:
  `close` in Schnittstelle `org.eclipse.net4j.util.collection.Closeable`

### createComment

protected String createComment(CDOCommitContext commitContext)

### setRevertComment

public static boolean setRevertComment(CDOTransaction transaction, CDOBranchPoint revertTo)

Seit:
  4.16

### appendMerge

public static boolean appendMerge(StringBuilder builder, CDOBranchPoint mergeSource)

Seit:
  4.6

### appendBranchPoint

public static boolean appendBranchPoint(StringBuilder builder, CDOBranchPoint branchPoint)

Seit:
  4.15

### appendSummary

public static void appendSummary(StringBuilder builder, CDOCommitContext commitContext)

Seit:
  4.2

### appendSummary

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

Seit:
  4.6