@NotThreadSafe public interface IdGeneratorDao
Modifier and Type | Method and Description |
---|---|
@NotNull List<IdGenerator> |
findAll()
Get all generators id.
|
@NotNull com.google.common.collect.Range<Long> |
nextIdRange(@NotNull BambooEntityType entityType)
Reserve new range of ids for given entity
|
void |
resetId(@NotNull BambooEntityOid lastOid)
Reset forward next id value in generator for given entity.
|
void |
saveNextId(@NotNull String name,
long nextId)
Saves next id value for given name.
|
@NotNull @NotNull com.google.common.collect.Range<Long> nextIdRange(@NotNull @NotNull BambooEntityType entityType)
entityType
- entity typevoid resetId(@NotNull @NotNull BambooEntityOid lastOid)
lastOid
- current biggest oid; next id generator for it's type will be updated@NotNull @NotNull List<IdGenerator> findAll()
void saveNextId(@NotNull @NotNull String name, long nextId)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences