Package java.util

Examples of java.util.Date$StringData


   * д��һ���µ����԰���Ϣ
   * @param gbb
   */
  public static void createMsg(GuestBookBean gbb){
    if(gbb.getCreateTime()==null)
      gbb.setCreateTime(new Date());
    save(gbb);
  }
View Full Code Here


  public static void SendMsgs(List users, String content, UserBean sender){
    try{
      //������Ϣbean
      MessageBean msg = new MessageBean();
      msg.setContent(content);
      msg.setSendTime(new Date());
      msg.setFromUser(sender);
      msg.setStatus(MessageBean.STATUS_NEW);
      //����д�����ݿ�
      Session ssn = getSession();
      beginTransaction();
View Full Code Here

   * @param msg
   */
  public static void readMsg(MessageBean msg){
    if(msg != null){
      commitNamedUpdate("READ_ONE_MESSAGE", new Object[]{MessageBean.I_STATUS_READ,
          new Date(), new Integer(msg.getId()), MessageBean.I_STATUS_NEW});
    }
  }
View Full Code Here

   * @return
   */
  public static int getNewMessageCount(int userid) {
    return executeNamedStatAsInt("NEW_MESSAGE_COUNT_OF_STATUS",
        new Object[] { new Integer(userid), MessageBean.I_STATUS_NEW,
            new Date() });
  }
View Full Code Here

   * @return
   */
  public static boolean addBlackList(int myId, int otherId, int type){
    if(namedUniqueResult("BLACKLIST", myId, otherId)==null){
      MyBlackListBean fbean = new MyBlackListBean();
      fbean.setAddTime(new Date());
      fbean.setMyId(myId);
      fbean.setOther(new UserBean(otherId));
      fbean.setType(type);
      save(fbean);
      return true;
View Full Code Here

        String detail = super.autoFiltrate(site, catalog.getDetail());
        cbean.setDetail(super.filterScriptAndStyle(detail));
      }
      cbean.setType(catalog.getType());
      cbean.setSite(site);
      cbean.setCreateTime(new Date());
      if(catalog.getCatalog()>0){
        cbean.setCatalog(new TypeBean(catalog.getCatalog()));
      }
      try{
        CatalogDAO.create(cbean, catalog.getId(), catalog.getDirection()==1);
View Full Code Here

   * ����һ��������Ϣ
   * @param bean
   */
  public static void create(TrackBackBean bean){
    if(bean.getTrackTime()==null)
      bean.setTrackTime(new Date());
    Session ssn = getSession();
    try{
      beginTransaction();
      ssn.save(bean);
      if(bean.getParentType()==_BeanBase.TYPE_DIARY){
View Full Code Here

    for(int ai=0;ai<args.length;ai++){
      String mailaddr = args[ai];
      Session ssn = initMailSession();
      MimeMessage mailMessage = new MimeMessage(ssn);
      mailMessage.setSubject("Hello MAIL");
      mailMessage.setSentDate(new Date());
      //Properties props = ssn.getProperties();
          //props.put("mail.smtp.from", "<>");
 
          Multipart multipart = new MimeMultipart("related");
      MimeBodyPart messageBodyPart = new MimeBodyPart();
View Full Code Here

      if (site.getCatalogs().size() > 0)
        break;
     
      CatalogBean cbean = new CatalogBean();
      cbean.setName(catalog);
      cbean.setCreateTime(new Date());
      cbean.setType(CatalogBean.TYPE_GENERAL);
      cbean.setSite(site);
      CatalogDAO.create(cbean, -1, false);
      break;
    }while(true);
View Full Code Here

          diary.setMoodLevel(diaryForm.getMoodLevel());
          if (StringUtils.isNotEmpty(diaryForm.getRefUrl()))
            diary.setRefUrl(diaryForm.getRefUrl());
          diary.setReplyNotify(diaryForm.getNotify());
          diary.setWeather(diaryForm.getWeather());
          diary.setModifyTime(new Date());
          if (diaryForm.getBgSound() != -1) {
            // ��鱳�������Ƿ���Ч
            MusicBean song = MusicDAO.getMusicByID(diaryForm.getBgSound());
            if (song != null
                && song.getSite().getId() == diary.getSite().getId()) {
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.