public class Sequences
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME_ACCOUNTS |
static java.lang.String |
NAME_CHANGES |
static java.lang.String |
NAME_GROUPS |
Constructor and Description |
---|
Sequences(org.eclipse.jgit.lib.Config cfg,
com.google.inject.Provider<ReviewDb> db,
NotesMigration migration,
GitRepositoryManager repoManager,
GitReferenceUpdated gitRefUpdated,
AllProjectsName allProjects,
AllUsersName allUsers,
com.google.gerrit.metrics.MetricMaker metrics) |
Modifier and Type | Method and Description |
---|---|
RepoSequence |
getChangeIdRepoSequence() |
static int |
getChangeSequenceGap(org.eclipse.jgit.lib.Config cfg) |
int |
nextAccountId() |
int |
nextChangeId() |
com.google.common.collect.ImmutableList<java.lang.Integer> |
nextChangeIds(int count) |
int |
nextGroupId() |
public static final java.lang.String NAME_ACCOUNTS
public static final java.lang.String NAME_GROUPS
public static final java.lang.String NAME_CHANGES
@Inject public Sequences(org.eclipse.jgit.lib.Config cfg, com.google.inject.Provider<ReviewDb> db, NotesMigration migration, GitRepositoryManager repoManager, GitReferenceUpdated gitRefUpdated, AllProjectsName allProjects, AllUsersName allUsers, com.google.gerrit.metrics.MetricMaker metrics)
public static int getChangeSequenceGap(org.eclipse.jgit.lib.Config cfg)
public int nextAccountId() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public int nextChangeId() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public com.google.common.collect.ImmutableList<java.lang.Integer> nextChangeIds(int count) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public int nextGroupId() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public RepoSequence getChangeIdRepoSequence()