public class ChangeUtil extends Object
Modifier and Type | Field and Description |
---|---|
static com.google.common.collect.Ordering<com.google.gerrit.reviewdb.client.PatchSet> |
PS_ID_ORDER |
static com.google.common.base.Function<com.google.gerrit.reviewdb.client.PatchSet,Integer> |
TO_PS_ID |
Modifier and Type | Method and Description |
---|---|
static String |
cropSubject(String subject) |
static String |
messageUUID(com.google.gerrit.reviewdb.server.ReviewDb db)
Generate a new unique identifier for change message entities.
|
static com.google.gerrit.reviewdb.client.PatchSet.Id |
nextPatchSetId(Map<String,org.eclipse.jgit.lib.Ref> allRefs,
com.google.gerrit.reviewdb.client.PatchSet.Id id) |
static com.google.gerrit.reviewdb.client.PatchSet.Id |
nextPatchSetId(com.google.gerrit.reviewdb.client.PatchSet.Id id) |
static com.google.gerrit.reviewdb.client.PatchSet.Id |
nextPatchSetId(org.eclipse.jgit.lib.Repository git,
com.google.gerrit.reviewdb.client.PatchSet.Id id) |
public static final com.google.common.base.Function<com.google.gerrit.reviewdb.client.PatchSet,Integer> TO_PS_ID
public static final com.google.common.collect.Ordering<com.google.gerrit.reviewdb.client.PatchSet> PS_ID_ORDER
public static String messageUUID(com.google.gerrit.reviewdb.server.ReviewDb db) throws com.google.gwtorm.server.OrmException
db
- the database connection, used to increment the change message
allocation sequence.com.google.gwtorm.server.OrmException
- the database couldn't be incremented.public static com.google.gerrit.reviewdb.client.PatchSet.Id nextPatchSetId(Map<String,org.eclipse.jgit.lib.Ref> allRefs, com.google.gerrit.reviewdb.client.PatchSet.Id id)
public static com.google.gerrit.reviewdb.client.PatchSet.Id nextPatchSetId(com.google.gerrit.reviewdb.client.PatchSet.Id id)
public static com.google.gerrit.reviewdb.client.PatchSet.Id nextPatchSetId(org.eclipse.jgit.lib.Repository git, com.google.gerrit.reviewdb.client.PatchSet.Id id) throws IOException
IOException