Interface SequenceService

  • All Known Implementing Classes:
    SequenceServiceImpl

    public interface SequenceService
    Author:
    Filip Hrisafov
    • Method Detail

      • 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 use createSequenceGenerator()
        Parameters:
        sequenceId - the id of the sequence value that needs to be updated
        newValue - 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