public class ChangeUtil
extends java.lang.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,java.lang.Integer> |
TO_PS_ID |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
cropSubject(java.lang.String subject) |
static java.lang.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(java.util.Map<java.lang.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,java.lang.Integer> TO_PS_ID
public static final com.google.common.collect.Ordering<com.google.gerrit.reviewdb.client.PatchSet> PS_ID_ORDER
public static java.lang.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(java.util.Map<java.lang.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 java.io.IOException
java.io.IOException
public static java.lang.String cropSubject(java.lang.String subject)