setDesignDocumentsOnly method (DominoQuery - Java)

Sets a value for the DominoQuery property DesignDocumentsOnly. If set to true, only design documents will be searched instead of data documents when execute() or explain() is called.

Defined in

DominoQuery

Syntax

public boolean setDesignDocumentsOnly ( boolean DesignDocumentsOnly ) throws NotesException

Parameters

boolean DesignDocumentsOnly
True or False

Returned value

None

Usage

Use this method to set the value of the DesignDocumentsOnly property in a DominoQuery instance. If set to true, then only design documents will be searched; if set to false, then only data documents will be searched like normal.

Note: DQL cannot perform design document searches if any of the following query terms are used:

  • IN [ALL] (‘View, folder, or foundset name’)
  • CONTAINS
  • ‘View or folder name’.Column
  • @All
If any of these terms are used while the DesignDocumentsOnly property is set to true, then the exception,
Query is not understandable
will be thrown during the call to execute() or explain().

Language cross-reference

DesignDocumentsOnly property (NotesDominoQuery - LotusScript)