@NotThreadSafe public interface IdGeneratorDao
Modifier and Type | Method and Description |
---|---|
List<IdGenerator> |
findAll()
Get all generators id.
|
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.
|
void |
saveNextId(String name,
long nextId)
Saves next id value for given name.
|
@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 updated@NotNull List<IdGenerator> findAll()
void saveNextId(@NotNull String name, long nextId)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.