Package lotus.domino

Examples of lotus.domino.Document.save()


        for (int i = 1; i < 200000; i++) {
          doc = db.createDocument();
          doc.replaceItemValue("form", "doc");
          doc.replaceItemValue("Subject", String.valueOf(System.nanoTime()));
          doc.save();
          doc.recycle();
          if (i % 5000 == 0) {
            System.out.println("Created " + i + " documents so far. Still going...");
          }
        }
View Full Code Here


      feedDoc.replaceItemValue("BLastError", "");
    }
   
    feedDoc.replaceItemValue("BLastErrorMessage", getLastErrorMessage());
   
    result=feedDoc.save();
    feedDoc.recycle();
    return result;
  }

  /**
 
View Full Code Here

      // Not checked, but in case additional field has Date or Calendar value, this is going to throw NotesException...
      for (Map.Entry<String, Object> entry : additionalFields.entrySet()) {
            storyDoc.replaceItemValue(entry.getKey(), entry.getValue());
          }
     
      storyDoc.save();
      storyDoc.recycle();

      return true;
    } catch (NotesException e) {
      throw new StoryReaderException(Constants.EXCEPTION_SAVE_STORY + ": "+ e.getMessage());
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.