public numeric function getNextVersionNumber()
Returns the next available version number that can be used for saving a new version record.
This is an auto incrementing integer that is global to all versioning tables in the system.