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 String
getName()
Name of id generatorlong
getNextId()
Next id for this generatorvoid
setName(String name)
void
setNextId(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:IdGenerator
Name of id generator- Specified by:
getName
in interfaceIdGenerator
-
getNextId
public long getNextId()
Description copied from interface:IdGenerator
Next id for this generator- Specified by:
getNextId
in interfaceIdGenerator
-
setName
public void setName(String name)
-
setNextId
public void setNextId(long nextId)
-
-