public boolean isDatabaseCompatible ( String databaseProductNameRegex , DatabaseVersion minVersion , DatabaseVersion maxVersion ) throws SQLException { readMetaDataIfNeeded ( ) ; if ( ! this . databaseProductName . matches ( databaseProductNameRegex ) ) { return false ; } return new VersionRange ( minVersion , maxVersion ) . isWithinRange ( this . databaseVersion ) ; }
Compares database product name and version information to that reported by the database .