コード例 #1
0
 public StatIndexManager(Date d, String path) {
   String strDate = DataFormat.formatDate(d, DataFormat.FMT_DATE_YYYY_MM_DD);
   table = tableName + "_" + strDate;
   indexPath = path;
 }
コード例 #2
0
 public StatIndexManager(Date d) {
   String strDate = DataFormat.formatDate(d, DataFormat.FMT_DATE_YYYY_MM_DD);
   table = tableName + "_" + strDate;
   indexPath = ServerManager.getStatIndexPath();
 }
コード例 #3
0
 public StatIndexManager(String path) {
   Date date = DataFormat.getNextDate(new Date(), -1); // 默认为昨天
   String strDate = DataFormat.formatDate(date, DataFormat.FMT_DATE_YYYY_MM_DD);
   table = tableName + "_" + strDate;
   indexPath = path;
 }
コード例 #4
0
ファイル: Parameter.java プロジェクト: shineit/-java-soku
  public Parameter(HttpServletRequest request) {
    keyword = request.getParameter("word");
    pageNum =
        DataFormat.parseInt(request.getParameter(ReceiverParamer.PAGENUM), DefaultValue.PAGENUM);
    sort = DataFormat.parseByte(request.getParameter(ReceiverParamer.SORT), DefaultValue.SORT);
    timeLength =
        DataFormat.parseByte(
            request.getParameter(ReceiverParamer.TIMELENGTH), DefaultValue.TIMELENGTH);
    dateLimit =
        DataFormat.parseByte(
            request.getParameter(ReceiverParamer.DATELIMIT), DefaultValue.DATELIMIT);
    hd = DataFormat.parseByte(request.getParameter(ReceiverParamer.HD), DefaultValue.HD);
    site = DataFormat.parseByte(request.getParameter(ReceiverParamer.SITE), DefaultValue.SITE);

    version_id = DataFormat.parseInt(request.getParameter(ReceiverParamer.VERSION_ID));
    site_version_id = DataFormat.parseInt(request.getParameter(ReceiverParamer.SITE_VERSION_ID));
    cate_id = DataFormat.parseInt(request.getParameter(ReceiverParamer.CATE_ID));
    name_id = DataFormat.parseInt(request.getParameter(ReceiverParamer.NAME_ID));
    ext = DataFormat.parseByte(request.getParameter(ReceiverParamer.EXT), DefaultValue.EXT);
    target_cate_id = DataFormat.parseInt(request.getParameter(ReceiverParamer.TARGET_CATE_ID));

    // 针对指定站点的情况,传递原来所有站点值
    if (site > 0) total_sites = request.getParameter(ReceiverParamer.TOTAL_SITES);
    request.setAttribute("parameter", this);
  }