Package org.activiti.engine.impl.db
Class DbIdGenerator
- java.lang.Object
-
- org.activiti.engine.impl.db.DbIdGenerator
-
- All Implemented Interfaces:
IdGenerator
public class DbIdGenerator extends java.lang.Object implements IdGenerator
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandConfigcommandConfigprotected CommandExecutorcommandExecutorprotected intidBlockSizeprotected longlastIdprotected longnextId
-
Constructor Summary
Constructors Constructor Description DbIdGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandConfiggetCommandConfig()CommandExecutorgetCommandExecutor()intgetIdBlockSize()protected voidgetNewBlock()java.lang.StringgetNextId()voidsetCommandConfig(CommandConfig commandConfig)voidsetCommandExecutor(CommandExecutor commandExecutor)voidsetIdBlockSize(int idBlockSize)
-
-
-
Field Detail
-
idBlockSize
protected int idBlockSize
-
nextId
protected long nextId
-
lastId
protected long lastId
-
commandExecutor
protected CommandExecutor commandExecutor
-
commandConfig
protected CommandConfig commandConfig
-
-
Method Detail
-
getNextId
public java.lang.String getNextId()
- Specified by:
getNextIdin interfaceIdGenerator
-
getNewBlock
protected void getNewBlock()
-
getIdBlockSize
public int getIdBlockSize()
-
setIdBlockSize
public void setIdBlockSize(int idBlockSize)
-
getCommandExecutor
public CommandExecutor getCommandExecutor()
-
setCommandExecutor
public void setCommandExecutor(CommandExecutor commandExecutor)
-
getCommandConfig
public CommandConfig getCommandConfig()
-
setCommandConfig
public void setCommandConfig(CommandConfig commandConfig)
-
-