Package com.atlassian.bamboo.oid
Class IdGeneratorEntity
- java.lang.Object
-
- com.atlassian.bamboo.oid.IdGeneratorEntity
-
- All Implemented Interfaces:
IdGenerator
public class IdGeneratorEntity extends Object implements IdGenerator
Entity to hold id generator values in hibernate. It has next id value for some arbitrary names.
-
-
Constructor Summary
Constructors Constructor Description IdGeneratorEntity()IdGeneratorEntity(@NotNull String name, long nextId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Name of id generatorlonggetNextId()Next id for this generatorvoidsetName(String name)voidsetNextId(long nextId)
-
-
-
Constructor Detail
-
IdGeneratorEntity
public IdGeneratorEntity()
-
IdGeneratorEntity
public IdGeneratorEntity(@NotNull @NotNull String name, long nextId)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:IdGeneratorName of id generator- Specified by:
getNamein interfaceIdGenerator
-
getNextId
public long getNextId()
Description copied from interface:IdGeneratorNext id for this generator- Specified by:
getNextIdin interfaceIdGenerator
-
setName
public void setName(String name)
-
setNextId
public void setNextId(long nextId)
-
-