3030import com .marklogic .client .io .marker .DocumentPatchHandle ;
3131import com .marklogic .client .io .marker .SearchReadHandle ;
3232import com .marklogic .client .query .QueryDefinition ;
33+ import com .marklogic .client .query .QueryManager .QueryView ;
3334
3435/**
3536 * A Document Manager provides database operations on a document.
@@ -367,14 +368,58 @@ public <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle
367368 public <T extends R > T read (DocumentDescriptor desc , DocumentMetadataReadHandle metadataHandle , T contentHandle , ServerTransform transform , Transaction transaction )
368369 throws ResourceNotFoundException , ForbiddenUserException , FailedRequestException ;
369370
371+ /**
372+ * Reads from the database a list of documents matching the provided uris. Allows
373+ * iteration across matching documents and metadata (only if setMetadataCategories
374+ * has been called to request metadata). To find out how many of your uris matched,
375+ * call the {@link DocumentPage#size() DocumentPage.size()} method.
376+ *
377+ * @param uris the database uris identifying documents to retrieve
378+ * @return the DocumentPage of matching documents and metadata
379+ */
370380 public DocumentPage read (String ... uris );
371381
382+ /**
383+ * Reads from the database a list of documents matching the provided uris. Allows
384+ * iteration across matching documents and metadata (only if setMetadataCategories
385+ * has been called to request metadata). To find out how many of your uris matched,
386+ * call the {@link DocumentPage#size() DocumentPage.size()} method.
387+ *
388+ * @param transform the transform to be run on the server on each document (must already be installed)
389+ * @param uris the database uris identifying documents to retrieve
390+ * @return the DocumentPage of matching documents and metadata
391+ */
372392 public DocumentPage read (ServerTransform transform , String ... uris );
373393
394+ /**
395+ * Reads from the database a list of documents matching the provided uris. Allows
396+ * iteration across matching documents and metadata (only if setMetadataCategories
397+ * has been called to request metadata). To find out how many of your uris matched,
398+ * call the {@link DocumentPage#size() DocumentPage.size()} method.
399+ *
400+ * @param transaction the transaction in which this read is participating
401+ * @param uris the database uris identifying documents to retrieve
402+ * @return the DocumentPage of matching documents and metadata
403+ */
374404 public DocumentPage read (Transaction transaction , String ... uris );
375405
406+ /**
407+ * Reads from the database a list of documents matching the provided uris. Allows
408+ * iteration across matching documents and metadata (only if setMetadataCategories
409+ * has been called to request metadata). To find out how many of your uris matched,
410+ * call the {@link DocumentPage#size() DocumentPage.size()} method.
411+ *
412+ * @param transform the transform to be run on the server on each document (must already be installed)
413+ * @param transaction the transaction in which this read is participating
414+ * @param uris the database uris identifying documents to retrieve
415+ * @return the DocumentPage of matching documents and metadata
416+ */
376417 public DocumentPage read (ServerTransform transform , Transaction transaction , String ... uris );
377418
419+ public DocumentPage readMetadata (String ... uris );
420+
421+ public DocumentPage readMetadata (Transaction transaction , String ... uris );
422+
378423 public DocumentPage search (QueryDefinition querydef , long start );
379424
380425 public DocumentPage search (QueryDefinition querydef , long start , Transaction transaction );
@@ -387,6 +432,14 @@ public <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle
387432
388433 public void setPageLength (long length );
389434
435+ public Format getResponseFormat ();
436+
437+ public void setResponseFormat (Format format );
438+
439+ public QueryView getSearchView ();
440+
441+ public void setSearchView (QueryView view );
442+
390443 public DocumentWriteSet newWriteSet ();
391444
392445 public void write (DocumentWriteSet writeSet );
0 commit comments