Package java.util

Examples of java.util.Date$StringData


      journal.setRefUrl(log.getRefUrl());
      journal.setReplyNotify(log.getNotify());
      journal.setStatus(DiaryBean.STATUS_NORMAL);
      journal.setWeather(log.getWeather());
      journal.setWriteTime(DateUtils.mergeDateTime(log.getWriteDate(), log.getWriteTime()).getTime());
      Date curTime = new Date();
      if(journal.getWriteTime().after(curTime))
        journal.setWriteTime(curTime);
      // ��鱳�������Ƿ���Ч
      MusicBean song = MusicDAO.getMusicByID(log.getBgSound());
      if (song != null && song.getSite().getId() == site.getId()) {
View Full Code Here


      }
      // ��ȡ�����²ݸ����Ȼ���״̬��Ϊ����
      journal.setClient(new ClientInfo(request, log.getClientType()));
      journal.setViewCount(0);
      journal.setStatus(DiaryBean.STATUS_NORMAL);
      journal.setWriteTime(new Date());
      DiaryDAO.flush();
      break;
    }
    if (!msgs.isEmpty()) {
      saveMessages(request, msgs);
View Full Code Here

      journal.setMoodLevel(log.getMoodLevel());
      journal.setReplyNotify(log.getNotify());
      journal.setViewCount(0);
      journal.setStatus(DiaryBean.STATUS_NORMAL);
      journal.setTitle(log.getTitle());
      journal.setWriteTime(new Date());
      DiaryDAO.create(journal, log.getBookmark() == 1);
      // �����ϴ�����Ϣ
      pickupUploadFileItems(request, response, loginUser.getId(), site, journal
          .getId(), DiaryBean.TYPE_DIARY);
      break;
View Full Code Here

      journal.setStatus(DiaryBean.STATUS_DRAFT);
      journal.setKeyword(super.autoFiltrate(site,log.getTags()));
      journal.setTitle(super.autoFiltrate(site,log.getTitle()));
      journal.setWeather(log.getWeather());
      journal.setWriteTime(DateUtils.mergeDateTime(log.getWriteDate(), log.getWriteTime()).getTime());
      Date curTime = new Date();
      if(journal.getWriteTime()==null || journal.getWriteTime().after(curTime))
        journal.setWriteTime(curTime);
      DiaryDAO.create(journal, false);
      //�����ϴ�����Ϣ
      super.pickupUploadFileItems(request, response, loginUser
View Full Code Here

            boolean is_file=Util.isFlagSet(flags, FILE);
            StringBuilder sb=new StringBuilder();
            sb.append(getType());
            if(is_file)
                sb.append(", len=" + Util.printBytes(length) + ", chunk_size=" + chunk_size);
            sb.append(", mod_time=" + new Date(modification_time));
            return sb.toString();
        }
View Full Code Here

      // If the server is part of an HA group starts the JGroup component
      if (jgroups != null) jgroups.init(sid);

      logmon.log(BasicLevel.WARN,
                 getName() + ", initialized at " + new Date());

      // Commit all changes.
      transaction.begin();
      transaction.commit(true);
View Full Code Here

            }
          }
        }
      }
      // The server is running.
      logmon.log(BasicLevel.WARN, getName() + ", started at " + new Date());

      // Commit all changes.
      transaction.begin();
      transaction.commit(true);
    } catch (Exception exc) {
View Full Code Here

     
      // AF: This call seems to cause deadlock with JOnAS and it is no longer needed so
      // we will remove it.
      // System.runFinalization();

      logmon.log(BasicLevel.WARN, getName() + ", stopped at " + new Date());
    } catch (Throwable t) {
      logmon.log(BasicLevel.ERROR, getName() + "Cannot stop", t);
      synchronized(status) {
        // AF: Will be replaced by a BAD_STOPPED status allowing the
        // stop and reset..
View Full Code Here

   *
   * @param t_reply
   */
  public static void create(TopicReplyBean t_reply) {
    if (t_reply.getReplyTime() == null)
      t_reply.setReplyTime(new Date());
    t_reply.getTopic().incReplyCount(1);
    t_reply.getTopic().setLastReply(t_reply);
    t_reply.getTopic().setLastReplyTime(new Date());
    t_reply.getTopic().setLastUser(t_reply.getUser());
    t_reply.getTopic().setLastUsername(t_reply.getUser().getName());
   
    t_reply.getUser().getCount().incTopicReplyCount(1);
    save(t_reply);
View Full Code Here

        msg = super.getMessage(request, null, "error.site_not_available");
        break;
      }
      LinkBean lbean = new LinkBean();
      lbean.setSiteId(toSite.getId());
      lbean.setCreateTime(new Date());
      lbean.setTitle(friendSite.getFriendlyName());
      lbean.setType(LinkBean.TYPE_INNER);
      lbean.setUrl(s_site_id);
      LinkDAO.create(lbean, 0, false);
      msg = super.getMessage(request, null, "link.added");
View Full Code Here

TOP

Related Classes of java.util.Date$StringData

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.