Class SequenceServiceImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.service.CommonServiceImpl<C>
-
- org.flowable.common.engine.impl.service.CommonEngineServiceImpl<PlatformEngineConfiguration>
-
- com.flowable.platform.engine.impl.sequence.SequenceServiceImpl
-
- All Implemented Interfaces:
SequenceService
public class SequenceServiceImpl extends CommonEngineServiceImpl<PlatformEngineConfiguration> implements SequenceService
- Author:
- Filip Hrisafov
-
-
Field Summary
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutor
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration
-
-
Constructor Summary
Constructors Constructor Description SequenceServiceImpl(PlatformEngineConfiguration engineConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SequenceGeneratorcreateSequenceGenerator()SequenceValueQuerycreateSequenceValueQuery()voiddeleteSequenceValue(String sequenceId)Delete the sequence value with the given id.voidupdateSequenceCurrentValue(String sequenceId, long newValue)Update the current value for the given sequence id.-
Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
-
Methods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
-
-
-
Constructor Detail
-
SequenceServiceImpl
public SequenceServiceImpl(PlatformEngineConfiguration engineConfiguration)
-
-
Method Detail
-
createSequenceGenerator
public SequenceGenerator createSequenceGenerator()
- Specified by:
createSequenceGeneratorin interfaceSequenceService
-
createSequenceValueQuery
public SequenceValueQuery createSequenceValueQuery()
- Specified by:
createSequenceValueQueryin interfaceSequenceService
-
updateSequenceCurrentValue
public void updateSequenceCurrentValue(String sequenceId, long newValue)
Description copied from interface:SequenceServiceUpdate the current value for the given sequence id. This is mostly meant for management purposes. In order to get the next value useSequenceService.createSequenceGenerator()- Specified by:
updateSequenceCurrentValuein interfaceSequenceService- Parameters:
sequenceId- the id of the sequence value that needs to be updatednewValue- the new value of the sequence
-
deleteSequenceValue
public void deleteSequenceValue(String sequenceId)
Description copied from interface:SequenceServiceDelete the sequence value with the given id. This is mostly meant for management purposes.- Specified by:
deleteSequenceValuein interfaceSequenceService- Parameters:
sequenceId- the id of the sequence that needs to be deleted
-
-