public class Sequences extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NAME_ACCOUNTS |
static String |
NAME_CHANGES |
static 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<Integer> |
nextChangeIds(int count) |
int |
nextGroupId() |
public static final String NAME_ACCOUNTS
public static final String NAME_GROUPS
public static final 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<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()