Generates the next value of an id sequence as represented by {@link IdSourceKey}.
Both, {@link IdSourceType#TABLE} and {@link IdSourceType#SEQUENCE} are supported. For the table strategy, nodes inthe following form are used (the exact property names and the label value can be configured using the options exposed by {@link OgmTableGenerator}):
(:hibernate_sequences:TABLE_BASED_SEQUENCE { sequence_name = 'ExampleSequence', current_value : 3 })
For the sequence strategy, nodes in the following form are used (the sequence name can be configured using the option exposed by {@link OgmSequenceGenerator}):
(:SEQUENCE { sequence_name = 'ExampleSequence', next_val : 3 })
Sequences are created at startup.
A write lock is acquired on the node every time the sequence needs to be updated.
@author Davide D'Alto <davide@hibernate.org>
@author Gunnar Morling