30
30
import com .marklogic .client .io .marker .DocumentPatchHandle ;
31
31
import com .marklogic .client .io .marker .SearchReadHandle ;
32
32
import com .marklogic .client .query .QueryDefinition ;
33
+ import com .marklogic .client .query .QueryManager .QueryView ;
33
34
34
35
/**
35
36
* A Document Manager provides database operations on a document.
@@ -367,14 +368,58 @@ public <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle
367
368
public <T extends R > T read (DocumentDescriptor desc , DocumentMetadataReadHandle metadataHandle , T contentHandle , ServerTransform transform , Transaction transaction )
368
369
throws ResourceNotFoundException , ForbiddenUserException , FailedRequestException ;
369
370
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
+ */
370
380
public DocumentPage read (String ... uris );
371
381
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
+ */
372
392
public DocumentPage read (ServerTransform transform , String ... uris );
373
393
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
+ */
374
404
public DocumentPage read (Transaction transaction , String ... uris );
375
405
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
+ */
376
417
public DocumentPage read (ServerTransform transform , Transaction transaction , String ... uris );
377
418
419
+ public DocumentPage readMetadata (String ... uris );
420
+
421
+ public DocumentPage readMetadata (Transaction transaction , String ... uris );
422
+
378
423
public DocumentPage search (QueryDefinition querydef , long start );
379
424
380
425
public DocumentPage search (QueryDefinition querydef , long start , Transaction transaction );
@@ -387,6 +432,14 @@ public <T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle
387
432
388
433
public void setPageLength (long length );
389
434
435
+ public Format getResponseFormat ();
436
+
437
+ public void setResponseFormat (Format format );
438
+
439
+ public QueryView getSearchView ();
440
+
441
+ public void setSearchView (QueryView view );
442
+
390
443
public DocumentWriteSet newWriteSet ();
391
444
392
445
public void write (DocumentWriteSet writeSet );
0 commit comments