The OrdinalManager class makes it possible to easily manage an integer ordinal column that is typically used to determine the order of the rows in a specific table.
The basic version manages the ordinals for the entire table, but it is also possible to create an OrdinalManager that uses several independent ranges of ordinals according to a restricting integer column.
For example, consider the following 'article' table:
with the following rows:
You can clearly see three independent ordinal ranges according to the categoryId column.
The OrdinalManager allows you to easily change the order of the articles by moving them up and down. Additional methods are also available to perform a number of low-level operations. Take a look at the javadocs
for more information.