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 SequenceGenerator
createSequenceGenerator()
SequenceValueQuery
createSequenceValueQuery()
void
deleteSequenceValue(String sequenceId)
Delete the sequence value with the given id.void
updateSequenceCurrentValue(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:
createSequenceGenerator
in interfaceSequenceService
-
createSequenceValueQuery
public SequenceValueQuery createSequenceValueQuery()
- Specified by:
createSequenceValueQuery
in interfaceSequenceService
-
updateSequenceCurrentValue
public void updateSequenceCurrentValue(String sequenceId, long newValue)
Description copied from interface:SequenceService
Update 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:
updateSequenceCurrentValue
in 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:SequenceService
Delete the sequence value with the given id. This is mostly meant for management purposes.- Specified by:
deleteSequenceValue
in interfaceSequenceService
- Parameters:
sequenceId
- the id of the sequence that needs to be deleted
-
-