Package com.google.gerrit.server.notedb
Class Sequences
- java.lang.Object
-
- com.google.gerrit.server.notedb.Sequences
-
public class Sequences extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
FIRST_ACCOUNT_ID
static int
FIRST_CHANGE_ID
static int
FIRST_GROUP_ID
static String
NAME_ACCOUNTS
static String
NAME_CHANGES
static String
NAME_GROUPS
-
Constructor Summary
Constructors Constructor Description Sequences(org.eclipse.jgit.lib.Config cfg, GitRepositoryManager repoManager, GitReferenceUpdated gitRefUpdated, AllProjectsName allProjects, AllUsersName allUsers, com.google.gerrit.metrics.MetricMaker metrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
currentAccountId()
int
currentChangeId()
int
currentGroupId()
int
nextAccountId()
int
nextChangeId()
com.google.common.collect.ImmutableList<Integer>
nextChangeIds(int count)
int
nextGroupId()
void
setAccountIdValue(int value)
void
setChangeIdValue(int value)
void
setGroupIdValue(int value)
-
-
-
Field Detail
-
NAME_ACCOUNTS
public static final String NAME_ACCOUNTS
- See Also:
- Constant Field Values
-
NAME_GROUPS
public static final String NAME_GROUPS
- See Also:
- Constant Field Values
-
NAME_CHANGES
public static final String NAME_CHANGES
- See Also:
- Constant Field Values
-
FIRST_ACCOUNT_ID
public static final int FIRST_ACCOUNT_ID
- See Also:
- Constant Field Values
-
FIRST_GROUP_ID
public static final int FIRST_GROUP_ID
- See Also:
- Constant Field Values
-
FIRST_CHANGE_ID
public static final int FIRST_CHANGE_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Sequences
@Inject public Sequences(org.eclipse.jgit.lib.Config cfg, GitRepositoryManager repoManager, GitReferenceUpdated gitRefUpdated, AllProjectsName allProjects, AllUsersName allUsers, com.google.gerrit.metrics.MetricMaker metrics)
-
-
Method Detail
-
nextAccountId
public int nextAccountId()
-
nextChangeId
public int nextChangeId()
-
nextChangeIds
public com.google.common.collect.ImmutableList<Integer> nextChangeIds(int count)
-
nextGroupId
public int nextGroupId()
-
currentChangeId
public int currentChangeId()
-
currentAccountId
public int currentAccountId()
-
currentGroupId
public int currentGroupId()
-
setChangeIdValue
public void setChangeIdValue(int value)
-
setAccountIdValue
public void setAccountIdValue(int value)
-
setGroupIdValue
public void setGroupIdValue(int value)
-
-