public boolean search(Client client) throws SQLException {
    boolean result = false;
    if (!client.isApp()) {
      String browserName = client.getBrowserSpecs().getBrowserName();
      String version = client.getBrowserSpecs().getVersion().split("\\.")[0].trim();
      Platform platform = client.getBrowserSpecs().getPlatform();
      
      String sql = "SELECT * FROM " + this.paas.getType().name() + " WHERE BROWSER = '" + browserName + "'";
      if (version != null && !version.isEmpty())
        sql += " AND VERSION LIKE '" + version + "%'";
      if (platform != Platform.ANY) {
        Platform family = platform.family();
        if (family == null)
          sql += " AND PLATFORM_TYPE = '" + platform.name() + "'";
        else
          sql += " AND PLATFORM = '" + platform.name() + "'";
      }
      sql += ";";
      
      Connection c = null;
      Statement s = null;
      ResultSet rs = null;
      try {
        c = this.getDatabaseConnection();
        s = c.createStatement();
        rs = s.executeQuery(sql);
        if (rs.next())
          result = true;
      } finally {
        Utils.closeDBResources(s, rs);
        if (c != null)
          c.close();
      }
    }
    return result;
  }
Search.

@param client the client

@return true, if successful

@throws SQLException the SQL exception
KITE-Framework/src/main/java/org/webrtc/kite/config/paas/PaasHandler.java