public class ChangeMessagesUtil
extends java.lang.Object
These methods either query for and update ChangeMessages in the NoteDb or ReviewDb, depending on the state of the NotesMigration.
Constructor and Description |
---|
ChangeMessagesUtil(NotesMigration migration) |
Modifier and Type | Method and Description |
---|---|
void |
addChangeMessage(com.google.gerrit.reviewdb.server.ReviewDb db,
ChangeUpdate update,
com.google.gerrit.reviewdb.client.ChangeMessage changeMessage) |
java.util.List<com.google.gerrit.reviewdb.client.ChangeMessage> |
byChange(com.google.gerrit.reviewdb.server.ReviewDb db,
ChangeNotes notes) |
java.lang.Iterable<com.google.gerrit.reviewdb.client.ChangeMessage> |
byPatchSet(com.google.gerrit.reviewdb.server.ReviewDb db,
ChangeNotes notes,
com.google.gerrit.reviewdb.client.PatchSet.Id psId) |
@Inject public ChangeMessagesUtil(NotesMigration migration)
public java.util.List<com.google.gerrit.reviewdb.client.ChangeMessage> byChange(com.google.gerrit.reviewdb.server.ReviewDb db, ChangeNotes notes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.lang.Iterable<com.google.gerrit.reviewdb.client.ChangeMessage> byPatchSet(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 addChangeMessage(com.google.gerrit.reviewdb.server.ReviewDb db, ChangeUpdate update, com.google.gerrit.reviewdb.client.ChangeMessage changeMessage) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException