private boolean checkDatabaseVersion ( String databaseName ) { final Version softwareVersion = this . requiredProductVersions . get ( databaseName ) ; if ( softwareVersion == null ) { throw new IllegalStateException ( "No version number is configured for: " + databaseName ) ; } final Version databaseVersion = this . versionDao . getVersion ( databaseName ) ; if ( databaseVersion == null ) { throw new IllegalStateException ( "No version number is exists in the database for: " + databaseName ) ; } return softwareVersion . equals ( databaseVersion ) ; }
Check if the database and software versions match