company logo

DatabaseHandle :: GetVersioningMode - Versioning mode

The versioning mode indicates the type of versioning for an object space. After setting the versioning mode, it can be changed in a restricted way, only, when data versions have been created.

Depending on the versioning mode, several versioning functions react different. Thus, it might be useful in some cases, checking the versioning mode before calling version functions.

// fragment: Database   dbh;

  if ( dbj.versioningMode() == Consistent ||

       dbh.versioningMode() == UndefinedVersioning )

    dbh.createMajorVersion();

Return value:   - internal feature (not documented) ( Version_Modes  )

Implementation details

Version_Modes DatabaseHandle  :: GetVersioningMode (  )