Interface SequenceService
- All Known Implementing Classes:
SequenceServiceImpl
public interface SequenceService
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Method Details
-
createSequenceGenerator
SequenceGenerator createSequenceGenerator() -
createSequenceValueQuery
SequenceValueQuery createSequenceValueQuery() -
updateSequenceCurrentValue
Update the current value for the given sequence id. This is mostly meant for management purposes. In order to get the next value usecreateSequenceGenerator()
- Parameters:
sequenceId
- the id of the sequence value that needs to be updatednewValue
- the new value of the sequence
-
deleteSequenceValue
Delete the sequence value with the given id. This is mostly meant for management purposes.- Parameters:
sequenceId
- the id of the sequence that needs to be deleted
-