Package edu.uga.galileo.slash.bo

Examples of edu.uga.galileo.slash.bo.StringAndCountHolder


        if (qStringChecker.indexOf("/") >= 0) {
          qStringChecker = qStringChecker.substring(qStringChecker
              .lastIndexOf("/") + 1);
        }

        results.add(new StringAndCountHolder(qString, rs
            .getInt("q2Count")));
      }
    } catch (SQLException e) {
      Logger.error("StatsDAO getCategoryViewsAndCounts failure: "
          + e.toString());
View Full Code Here


        if ((pageName.indexOf("http://") == -1)
            && (!(pageName.startsWith("/nge")))
            && (!(pageName.startsWith("mailto:")))
            && (!(pageName.startsWith("ftp:")))
            && (!(pageName.startsWith("www.")))) {
          results.add(new StringAndCountHolder(pageName, rs
              .getInt("pageCount")));
        }
      }
    } catch (SQLException e) {
      Logger.error("StatsDAO getPageNamesAndCounts failure: "
View Full Code Here

        feedName = rs.getString("feed");
        if ((feedName == null) || (feedName.trim().equals("|"))) {
          continue;
        }

        results.add(new StringAndCountHolder(feedName, rs
            .getInt("feedCount")));
      }
    } catch (SQLException e) {
      Logger.error("StatsDAO getRSSFeedsAndCounts failure: "
          + e.toString());
View Full Code Here

          if ((page.indexOf("http://") == -1)
              && (!(page.startsWith("mailto:")))
              && (!(page.startsWith("ftp:")))
              && (!(page.startsWith("https:")))
              && (!(page.startsWith("/nge")))) {
            results.add(new StringAndCountHolder(page, rs
                .getInt("pageCount")));
          }
        } else {
          if (page.indexOf('?') >= 0) {
            page = page.substring(0, page.indexOf('?'));
          }

          if (page.indexOf('/') >= 0) {
            page = page.substring(page.lastIndexOf('/') + 1);
          }

          if (hashResults.containsKey(page)) {
            StringAndCountHolder sach = hashResults.get(page);
            sach.setCount(sach.getCount() + rs.getInt("pageCount"));
          } else {
            StringAndCountHolder sach = new StringAndCountHolder(
                page, rs.getInt("pageCount"));
            results.add(sach);
            hashResults.put(page, sach);
          }
        }
View Full Code Here

      ps.setString(1, startDate);
      ps.setString(2, endDate);
      rs = ps.executeQuery();

      while (rs.next()) {
        results.add(new StringAndCountHolder(rs.getString("theDay"), rs
            .getInt("theCount")));
      }
    } catch (SQLException e) {
      Logger.error("StatsDAO getTopDayData failure: " + e.toString());
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of edu.uga.galileo.slash.bo.StringAndCountHolder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.