Obtaining the Version Number of User Database Files

If you want to obtain the version number of user database map files, you can run jverinfo JADE Version Information utility with the optional datpath argument, to obtain the current user data map file version number. This argument can be applied only to user database map files; that is, user schema files (for example, _userdev.dat, _userscm.dat, and so on) represented by the DbFile class Kind_User_Schema constant and user data files (for example, _rootdef.dat, locktest.dat, and so on) represented by the DbFile class Kind_User_Data constant.

Use the optional setUserFileVersions argument in the jdbutilb batch JADE Database utility to set the user data map file version number to the specified 32-bit unsigned integer value.

When you specify the datpath argument, the output file contains an unformatted list of all user data map files, including the version number, the ANSI, Unicode 16, or Unicode 32 build type, whether the architecture is LittleEndian or BigEndian, and the time and date that each file was last modified.

In the following example of user data version information, 93 is the specified user data file version number. If a user data version number has not been specified, the version number is zero (0).

User:                  (path= c:\jade\system)
==============
locktest.dat              93  Ansi,LittleEndian Tue Jun 10 08:16:21 2008
simpleconsumer.dat        93  Ansi,LittleEndian Tue Jun 10 08:16:21 2008
simpleprovider.dat        93  Ansi,LittleEndian Tue Jun 10 08:16:21 2008
wsconsumer.dat            93  Ansi,LittleEndian Tue Jun 10 08:16:22 2008
_environ.dat              93  Ansi,LittleEndian Tue Jun 10 08:16:20 2008
_monitor.dat              93  Ansi,LittleEndian Tue Jun 10 04:00:57 2008
_reports.dat              93  Ansi,LittleEndian Tue Jun 10 08:16:21 2008
_rootdef.dat              93  Ansi,LittleEndian Tue Jun 10 04:00:57 2008
_stats.dat                93  Ansi,LittleEndian Tue Jun 10 04:00:07 2008
_userdev.dat              93  Ansi,LittleEndian Tue Jun 10 08:16:21 2008
_usergui.dat              93  Ansi,LittleEndian Tue Jun 10 08:16:20 2008
_userint.dat              93  Ansi,LittleEndian Tue Jun 10 08:16:20 2008
_userscm.dat              93  Ansi,LittleEndian Tue Jun 10 08:16:20 2008
_userxrf.dat              93  Ansi,LittleEndian Tue Jun 10 08:16:20 2008

In the RootSchema, call the DbFile class getUserPatchVersion method to return a 32‑bit unsigned value as an Integer64 primitive type, which is the unformatted version number of user data map files.

If a user data version number is not set, this method returns zero (0).