Package lotus.domino

Examples of lotus.domino.Document.recycle()


      setItemValueRichText(doc,"Properties", snippet.getPropertiesAsString());
      setItemValueRichText(doc,"Documentation", snippet.getDocHtml());
     
      doc.save();
    } finally {
      doc.recycle();
    }
  }
}
View Full Code Here


            context.redirectToPage("/admin.xsp");
          }

        }

        settings.recycle();
        settingsView.recycle();
      }
      validConfig = true;
    } catch (NotesException e) {
      e.printStackTrace();
View Full Code Here

      } else {
        Messages.clear();
        validConfig = true;
      }

      settings.recycle();
    } catch (NotesException e) {
      e.printStackTrace();
      return false;
    }
View Full Code Here

      doc.replaceItemValue("City", city);
      doc.replaceItemValue("State", state);
      doc.replaceItemValue("email", email);
      doc.save();
    } finally {
      doc.recycle();
    }
  }

  String createEmail(String firstName, String lastName, String city) {
    StringBuilder b = new StringBuilder();
View Full Code Here

      doc.replaceItemValue("Form", "State");
      doc.replaceItemValue("Key", key);
      doc.replaceItemValue("Name", name);
      doc.save();
    } finally {
      doc.recycle();
    }
  }

  // ===================================================================
  // Discussion
View Full Code Here

        if (mvd) {
          // Previous day...
          date.adjustDay(-1);
        }
      } finally {
        doc.recycle();
      }
    }
  }

  // ===================================================================
View Full Code Here

      mdg.add("dlgx_" + sIndex + "_1");
      doc.replaceItemValue("fldDialogList2", mdg);

      doc.save();
    } finally {
      doc.recycle();
    }
  }

  protected DateTime createDate(Session session, int year, int month, int day) throws NotesException {
    DateTime d = session.createDateTime(new Date());
View Full Code Here

          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();
          if (name != null)
View Full Code Here

      // doSomething
    } finally {
      try {
        threadsByDate.recycle();
        firstDoc.recycle();
        secondDoc.recycle();
        firstDate.recycle();
        secondDate.recycle();
      } catch (NotesException e) {
        // doSomething
      }
View Full Code Here

      // doSomething
    } finally {
      try {
        threadsByDate.recycle();
        firstDoc.recycle();
        secondDoc.recycle();
        firstDate.recycle();
        secondDate.recycle();
      } catch (NotesException e) {
        // doSomething
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.