Package com.agiletec.plugins.jpcalendar.aps.system.services.calendar.util

Examples of com.agiletec.plugins.jpcalendar.aps.system.services.calendar.util.SmallEventOfDay


  }
 
  private List<String> getRightContentsId(List<SmallEventOfDay> smallContents, EventsOfDayDataBean bean) {
    List<String> contentsId = new ArrayList<String>();
    for (int i = 0; i < smallContents.size(); i++) {
      SmallEventOfDay smallContent = smallContents.get(i);
      if (this.isRightContent(smallContent, bean)) {
        contentsId.add(smallContent.getId());
      }
    }
    return contentsId;
  }
View Full Code Here


  }
 
  private List<SmallEventOfDay> loadSmallDateContents(ResultSet result,
      String attributeNameStart, String attributeNameEnd) throws SQLException {
      List<SmallEventOfDay> smallEvents = new ArrayList<SmallEventOfDay>();
      SmallEventOfDay smallEvent = null;
      String prevId = null;
      while (result.next()) {
        String id = result.getString(1);
        if (!id.equals(prevId)) {
          if (smallEvent != null) {
            smallEvents.add(smallEvent);
          }
          smallEvent = new SmallEventOfDay();
        }
        smallEvent.setId(id);
        String attrName = result.getString(2);
        if (attrName.equals(attributeNameStart)) {
          Date dataInizio = this.dateFromSQL(result.getDate(4));
          smallEvent.setStart(dataInizio);
        } else if (attrName.equals(attributeNameEnd)) {
          Date endDate = this.dateFromSQL(result.getDate(4));
          smallEvent.setEnd(endDate);
        }
        prevId = id;
      }
      if (smallEvent != null) {
      smallEvents.add(smallEvent);
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpcalendar.aps.system.services.calendar.util.SmallEventOfDay

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.