Package lotus.domino

Examples of lotus.domino.DateRange


    return d;
  }

  protected DateRange createDateTimeRange(Session session, int year, int month, int day, int hour, int minute,
      int second) throws NotesException {
    DateRange r = session.createDateRange(new Date(), new Date());
    r.setStartDateTime(createDateTime(session, year, month, day, hour, minute, second));
    r.setEndDateTime(createDateTime(session, year + 1, month, day, hour + 1, minute, second));
    return r;
  }
View Full Code Here


          getLotusId(name);
          DateTime dt = session.createDateTime(new Date());
          getLotusId(dt);
          DateTime end = session.createDateTime(new Date());
          getLotusId(end);
          DateRange dr = session.createDateRange(dt, end);
          getLotusId(dr);
          Document doc = db.createDocument();
          getLotusId(doc);
          Item i1 = doc.replaceItemValue("Foo", dr);
          getLotusId(i1);
          Item i2 = doc.replaceItemValue("Bar", dr.getText());
          getLotusId(i2);
          Item i3 = doc.replaceItemValue("Blah", dr.getStartDateTime().getLocalTime());
          getLotusId(i3);
          lotus.domino.ColorObject color = session.createColorObject();
          getLotusId(color);
          color.setRGB(128, 128, 128);
          Item i4 = doc.replaceItemValue("color", color.getNotesColor());
          getLotusId(i4);
          i1.recycle();
          i2.recycle();
          i3.recycle();
          i4.recycle();
          DateTime create = doc.getCreated();
          getLotusId(create);
          String lc = create.getLocalTime();
          if (i % 10000 == 0) {
            System.out.println(Thread.currentThread().getName() + " Name " + i + " is " + name.getCommon() + " "
                + "Local time is " + lc + "  " + dr.getText());
          }
          dr.recycle();
          doc.recycle();
          dt.recycle();
          end.recycle();
          create.recycle();
          color.recycle();
View Full Code Here

        getLotusId(name);
        DateTime dt = session.createDateTime(new Date());
        getLotusId(dt);
        DateTime end = session.createDateTime(new Date());
        getLotusId(end);
        DateRange dr = session.createDateRange(dt, end);
        getLotusId(dr);
        Document doc = db.createDocument();
        getLotusId(doc);
        Item i1 = doc.replaceItemValue("Foo", dr);
        getLotusId(i1);
        Item i2 = doc.replaceItemValue("Bar", dr.getText());
        getLotusId(i2);
        Item i3 = doc.replaceItemValue("Blah", dr.getStartDateTime().getLocalTime());
        getLotusId(i3);
        lotus.domino.ColorObject color = session.createColorObject();
        getLotusId(color);
        color.setRGB(128, 128, 128);
        Item i4 = doc.replaceItemValue("color", color.getNotesColor());
        getLotusId(i4);
        i1.recycle();
        i2.recycle();
        i3.recycle();
        i4.recycle();
        DateTime create = doc.getCreated();
        getLotusId(create);
        @SuppressWarnings("unused")
        String lc = create.getLocalTime();
        //          if (i % 10000 == 0) {
        //            System.out.println(Thread.currentThread().getName() + " Name " + i + " is " + name.getCommon() + " "
        //                + "Local time is " + lc + "  " + dr.getText());
        //          }
        dr.recycle();
        doc.recycle();
        dt.recycle();
        end.recycle();
        create.recycle();
        color.recycle();
View Full Code Here

TOP

Related Classes of lotus.domino.DateRange

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.