Package com.knowgate.misc

Examples of com.knowgate.misc.Month


  public int loadMeetingsForFellow(JDCConnection oConn, int iDomainId, String sWorkAreaId,
                                   String sFellowId, int iYearMinus1900, int iMonthZeroBased)
    throws SQLException {
 
    oThisMonth = new Month(iYearMinus1900, iMonthZeroBased);
   
    oMeetings = new DBSubset(DB.k_meetings + " m," + DB.k_x_meeting_fellow + " f",
          "m." + DB.gu_meeting + ",m." + DB.dt_start + ",m." + DB.bo_private + ",m." + DB.tx_meeting + ",m." + DB.dt_end,
        "m."+DB.id_domain+"=? AND m."+DB.gu_workarea+"=? AND "+
          "f." + DB.gu_meeting + "=m." + DB.gu_meeting + " AND f." + DB.gu_fellow + "=? AND m." + DB.dt_start + " BETWEEN " + DBBind.escape(firstDay(), "d") + " AND " + DBBind.escape(nextMonth(), "d") + " ORDER BY 2", 60);
View Full Code Here


 
  public int loadMeetingsForRoom(JDCConnection oConn, int iDomainId, String sWorkAreaId,
                                 String sRoomNm, int iYearMinus1900, int iMonthZeroBased)
    throws SQLException {
 
    oThisMonth = new Month(iYearMinus1900, iMonthZeroBased);
   
    oMeetings = new DBSubset(DB.k_meetings + " m," + DB.k_x_meeting_room + " f",
          "m." + DB.gu_meeting + ",m." + DB.dt_start + ",m." + DB.bo_private + ",m." + DB.tx_meeting + ",m." + DB.dt_end,
        "m."+DB.id_domain+"=? AND m."+DB.gu_workarea+"=? AND "+
          "f." + DB.gu_meeting + "=m." + DB.gu_meeting + " AND f." + DB.nm_room + "=? AND m." + DB.dt_start + " BETWEEN " + DBBind.escape(firstDay(), "d") + " AND " + DBBind.escape(nextMonth(), "d") + " ORDER BY 2", 60);
View Full Code Here

  public int loadMeetingsForAddress(JDCConnection oConn, int iDomainId, String sWorkAreaId,
                                    String sAddrId, int iYearMinus1900, int iMonthZeroBased)
    throws SQLException {
 
    oThisMonth = new Month(iYearMinus1900, iMonthZeroBased);
   
    oMeetings = new DBSubset(DB.k_meetings + " m",
          "m." + DB.gu_meeting + ",m." + DB.dt_start + ",m." + DB.bo_private + ",m." + DB.tx_meeting + ",m." + DB.dt_end,
        "m."+DB.id_domain+"=? AND m."+DB.gu_workarea+"=? AND "+
          "m." + DB.gu_address + "=? AND m." + DB.dt_start + " BETWEEN " + DBBind.escape(firstDay(), "d") + " AND " + DBBind.escape(nextMonth(), "d") + " ORDER BY 2", 60);
View Full Code Here

    ArrayList<Month> aMonthsWithPosts = Forums.getMonthsWithPosts(oConn, sGuNewsGrp);
    StringBuffer oStrBuff = new StringBuffer();
    oStrBuff.append("<Months>");
    if (null!=aMonthsWithPosts) {
      for (int n=aMonthsWithPosts.size()-1; n>=0; n--) {
        Month m = aMonthsWithPosts.get(n);
        oStrBuff.append("<Month m=\""+Gadgets.leftPad(String.valueOf(m.getMonth()+1),'0',2)+"\" y=\""+String.valueOf(m.getYear()+1900)+"\">");
        oStrBuff.append(com.knowgate.misc.Calendar.MonthName(m.getMonth(), sLanguage)+" "+String.valueOf(m.getYear()+1900));
        oStrBuff.append("</Month>");
      } // next
    } // fi
    oStrBuff.append("</Months>");
    return oStrBuff.toString();
View Full Code Here

      oRSet.close();
      if (bMonthHasPosts) {
          if (DebugFile.trace) {
            DebugFile.writeln(com.knowgate.misc.Calendar.MonthName(dtFirstDayOfMonth.getMonth(),"en")+" "+String.valueOf(dtFirstDayOfMonth.getYear()+1900)+" has posts");
          }
      aMonthsWithPosts.add(new Month(dtFirstDayOfMonth.getYear(),dtFirstDayOfMonth.getMonth()));
      } else {
          if (DebugFile.trace) {
            DebugFile.writeln(com.knowgate.misc.Calendar.MonthName(dtFirstDayOfMonth.getMonth(),"en")+" "+String.valueOf(dtFirstDayOfMonth.getYear()+1900)+" has not posts");
          }
      } // fi
View Full Code Here

TOP

Related Classes of com.knowgate.misc.Month

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.