public class PatchLineCommentsUtil
extends java.lang.Object
These methods either query for and update PatchLineComments in the NoteDb or ReviewDb, depending on the state of the NotesMigration.
Constructor and Description |
---|
PatchLineCommentsUtil(NotesMigration migration) |
Modifier and Type | Method and Description |
---|---|
void |
addPublishedComments(com.google.gerrit.reviewdb.server.ReviewDb db,
ChangeUpdate update,
java.lang.Iterable<com.google.gerrit.reviewdb.client.PatchLineComment> comments) |
java.util.List<com.google.gerrit.reviewdb.client.PatchLineComment> |
publishedByChangeFile(com.google.gerrit.reviewdb.server.ReviewDb db,
ChangeNotes notes,
com.google.gerrit.reviewdb.client.Change.Id changeId,
java.lang.String file) |
java.util.List<com.google.gerrit.reviewdb.client.PatchLineComment> |
publishedByPatchSet(com.google.gerrit.reviewdb.server.ReviewDb db,
ChangeNotes notes,
com.google.gerrit.reviewdb.client.PatchSet.Id psId) |
@Inject public PatchLineCommentsUtil(NotesMigration migration)
public java.util.List<com.google.gerrit.reviewdb.client.PatchLineComment> publishedByChangeFile(com.google.gerrit.reviewdb.server.ReviewDb db, ChangeNotes notes, com.google.gerrit.reviewdb.client.Change.Id changeId, java.lang.String file) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.List<com.google.gerrit.reviewdb.client.PatchLineComment> publishedByPatchSet(com.google.gerrit.reviewdb.server.ReviewDb db, ChangeNotes notes, com.google.gerrit.reviewdb.client.PatchSet.Id psId) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public void addPublishedComments(com.google.gerrit.reviewdb.server.ReviewDb db, ChangeUpdate update, java.lang.Iterable<com.google.gerrit.reviewdb.client.PatchLineComment> comments) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException