@NotThreadSafe public interface IdGeneratorDao
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.Range<Long> |
nextIdRange(BambooEntityType entityType)
Reserve new range of ids for given entity
|
void |
resetId(BambooEntityOid lastOid)
Reset forward next id value in generator for given entity.
|
@NotNull com.google.common.collect.Range<Long> nextIdRange(@NotNull BambooEntityType entityType)
entityType
- entity typevoid resetId(@NotNull BambooEntityOid lastOid)
lastOid
- current biggest oid; next id generator for it's type will be updatedCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.