public class DraftCommentNotes extends AbstractChangeNotes<DraftCommentNotes>
Change based on the log of
its drafts branch.| Modifier and Type | Class and Description |
|---|---|
static interface |
DraftCommentNotes.Factory |
AbstractChangeNotes.Args, AbstractChangeNotes.LoadHandleargs, autoRebuild| Modifier and Type | Method and Description |
|---|---|
boolean |
containsComment(com.google.gerrit.reviewdb.client.PatchLineComment c) |
com.google.gerrit.reviewdb.client.Account.Id |
getAuthor() |
com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.RevId,com.google.gerrit.reviewdb.client.PatchLineComment> |
getComments() |
com.google.gerrit.reviewdb.client.Project.NameKey |
getProjectName() |
protected String |
getRefName() |
protected void |
loadDefaults()
Load default values for any instance variables when NoteDb is disabled.
|
protected void |
onLoad(AbstractChangeNotes.LoadHandle handle)
Set up the metadata, parsing any state from the loaded revision.
|
protected AbstractChangeNotes.LoadHandle |
openHandle(org.eclipse.jgit.lib.Repository repo) |
getChangeId, getRevision, load, loadRevision, openHandle, readRef, reload, selfpublic com.google.gerrit.reviewdb.client.Account.Id getAuthor()
public com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.RevId,com.google.gerrit.reviewdb.client.PatchLineComment> getComments()
public boolean containsComment(com.google.gerrit.reviewdb.client.PatchLineComment c)
protected String getRefName()
getRefName in class AbstractChangeNotes<DraftCommentNotes>protected void onLoad(AbstractChangeNotes.LoadHandle handle) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
AbstractChangeNotesonLoad in class AbstractChangeNotes<DraftCommentNotes>IOExceptionorg.eclipse.jgit.errors.ConfigInvalidExceptionprotected void loadDefaults()
AbstractChangeNotesloadDefaults in class AbstractChangeNotes<DraftCommentNotes>public com.google.gerrit.reviewdb.client.Project.NameKey getProjectName()
getProjectName in class AbstractChangeNotes<DraftCommentNotes>protected AbstractChangeNotes.LoadHandle openHandle(org.eclipse.jgit.lib.Repository repo) throws IOException
openHandle in class AbstractChangeNotes<DraftCommentNotes>IOException