Interface SequenceService
-
- All Known Implementing Classes:
SequenceServiceImpl
public interface SequenceService- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
createSequenceGenerator
SequenceGenerator createSequenceGenerator()
-
createSequenceValueQuery
SequenceValueQuery createSequenceValueQuery()
-
updateSequenceCurrentValue
void updateSequenceCurrentValue(String sequenceId, long newValue)
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
void deleteSequenceValue(String sequenceId)
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
-
-