public class ChangeDraftUpdate extends AbstractChangeUpdate
This delta contains only draft comments on a single patch set of a change by a single author. This delta will become a single commit in the All-Users repository.
This class is not thread safe.
Modifier and Type | Class and Description |
---|---|
static interface |
ChangeDraftUpdate.Factory |
accountId, anonymousCowardName, authorIdent, migration, NO_OP_UPDATE, noteUtil, psId, when
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.jgit.lib.CommitBuilder |
applyImpl(org.eclipse.jgit.revwalk.RevWalk rw,
org.eclipse.jgit.lib.ObjectInserter ins,
org.eclipse.jgit.lib.ObjectId curr)
Create a commit containing the contents of this update.
|
void |
deleteComment(com.google.gerrit.reviewdb.client.PatchLineComment c) |
void |
deleteComment(com.google.gerrit.reviewdb.client.RevId revId,
com.google.gerrit.reviewdb.client.PatchLineComment.Key key) |
protected com.google.gerrit.reviewdb.client.Project.NameKey |
getProjectName() |
protected java.lang.String |
getRefName() |
boolean |
isEmpty()
Whether no updates have been done.
|
void |
putComment(com.google.gerrit.reviewdb.client.PatchLineComment c) |
allowWriteToNewRef, getAccountId, getChange, getId, getNotes, getNullableAccountId, getPatchSetId, getWhen, newIdent, setPatchSetId
public void putComment(com.google.gerrit.reviewdb.client.PatchLineComment c)
public void deleteComment(com.google.gerrit.reviewdb.client.PatchLineComment c)
public void deleteComment(com.google.gerrit.reviewdb.client.RevId revId, com.google.gerrit.reviewdb.client.PatchLineComment.Key key)
protected org.eclipse.jgit.lib.CommitBuilder applyImpl(org.eclipse.jgit.revwalk.RevWalk rw, org.eclipse.jgit.lib.ObjectInserter ins, org.eclipse.jgit.lib.ObjectId curr) throws com.google.gwtorm.server.OrmException, java.io.IOException
AbstractChangeUpdate
applyImpl
in class AbstractChangeUpdate
ins
- inserter to write to; callers should not flush.AbstractChangeUpdate.isEmpty()
), return the sentinel AbstractChangeUpdate.NO_OP_UPDATE
.com.google.gwtorm.server.OrmException
- if a Gerrit-level error occurred.java.io.IOException
- if a lower-level error occurred.protected com.google.gerrit.reviewdb.client.Project.NameKey getProjectName()
getProjectName
in class AbstractChangeUpdate
protected java.lang.String getRefName()
getRefName
in class AbstractChangeUpdate
public boolean isEmpty()
AbstractChangeUpdate
isEmpty
in class AbstractChangeUpdate