public boolean versionGreaterOrEqual(int major, int minor, int patch) {
    if (this.majorVersion > major) {
      return true;
    }

    if (this.majorVersion < major) {
      return false;
    }

    /*
     * Major versions are equal, compare minor versions
     */
    if (this.minorVersion > minor) {
      return true;
    }
    if (this.minorVersion < minor) {
      return false;
    }

    //Minor versions are equal, compare patch version.
    return this.patchVersion >= patch;
  }
public boolean versionGreaterOrEqual ( int major , int minor , int patch ) { if ( this . majorVersion > major ) { return true ; } if ( this . majorVersion < major ) { return false ; } if ( this . minorVersion > minor ) { return true ; } if ( this . minorVersion < minor ) { return false ; } return this . patchVersion >= patch ; }
Utility method to check if database version is greater than parameters.

@param major major version
@param minor minor version
@param patch patch version
@return true if version is greater than parameters