Read change ID sequence from notedb

Change-Id: Ib500a93d6368c7ef134422102afd8b561addd52f
This commit is contained in:
Dave Borowitz
2016-01-14 13:33:36 -05:00
parent 9b82bfdd57
commit b259ed7518
9 changed files with 99 additions and 13 deletions

View File

@@ -113,8 +113,15 @@ public interface ReviewDb extends Schema {
@Sequence
int nextAccountGroupId() throws OrmException;
/** Next unique id for a {@link Change}. */
@Sequence
int FIRST_CHANGE_ID = 1;
/**
* Next unique id for a {@link Change}.
*
* @deprecated use {@link com.google.gerrit.server.Sequences#nextChangeId()}.
*/
@Sequence(startWith = FIRST_CHANGE_ID)
@Deprecated
int nextChangeId() throws OrmException;
/**