Package com.documentum.fc.client.search
Interface IDfQueryDefinition
- All Superinterfaces:
IDfSearchSourceContainer
- All Known Subinterfaces:
IDfPassThroughQuery,IDfQueryBuilder
This is a base interface for the query that can be executed by the
IDfQueryProcessor. Use IDfSearchService to initialize the IDfQueryProcessor with the IDfQueryDefinition.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intQuery type: Query Builder.static final intQuery type: Pass-through.static final intInternal query type used to identify uninitialized query. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Performs a deep copy of the query definition.intGets the global maximum result count to be expected from processing the query, for all search sources.intGets the maximum result count to be expected from one search source.Provides access to an instance of theIDfSearchMetadataManagerof the query.intGet the Query definition type.booleanTests theQUERY_DEF_TYPE_BUILDERtype.voidsetMaxResultCount(int maxResultCount) Sets the global maximum result count to be expected from processing the query, for all search sources.voidsetMaxResultPerSource(int maxResultCount) Sets the maximum result count to be expected from one search source.Methods inherited from interface com.documentum.fc.client.search.IDfSearchSourceContainer
addSelectedSource, clearSelectedSources, getSelectedSourceCount, getSelectedSources, removeSelectedSource
-
Field Details
-
QUERY_DEF_TYPE_UNDEFINED
static final int QUERY_DEF_TYPE_UNDEFINEDInternal query type used to identify uninitialized query. This field is reserved for future uses.- See Also:
-
QUERY_DEF_TYPE_BUILDER
static final int QUERY_DEF_TYPE_BUILDERQuery type: Query Builder. Query of this type supportsIDfQueryBuilderinterface.- See Also:
-
QUERY_DEF_TYPE_PASSTHROUGH
static final int QUERY_DEF_TYPE_PASSTHROUGHQuery type: Pass-through. Query of this type supportsIDfPassThroughQueryinterface.- See Also:
-
-
Method Details
-
getQueryDefinitionType
int getQueryDefinitionType()Get the Query definition type. It can be one of the following:- Returns:
- The query definition type.
-
isQueryBuilder
boolean isQueryBuilder()Tests theQUERY_DEF_TYPE_BUILDERtype. It is useful because this type is a primary type of the Query definition.- Returns:
true, if query type isQUERY_DEF_TYPE_BUILDER.
-
getMaxResultCount
int getMaxResultCount()Gets the global maximum result count to be expected from processing the query, for all search sources.
Note: the real maximum result count returned by the running query is computed according to this global maximum, the maximum defined by the administrator in the configuration file, and finally the maximum result count per source, set withsetMaxResPerSource().- Returns:
- The global maximum result count defined for this query definition; or -1 if the maximum has not been defined in this query definition (in this case the maximum is the one defined by the configuration file).
-
setMaxResultCount
void setMaxResultCount(int maxResultCount) Sets the global maximum result count to be expected from processing the query, for all search sources.
Note: the real maximum result count returned by the running query is computed according to this global maximum, the maximum defined by the administrator in the configuration file, and finally the maximum result count per source, set withsetMaxResPerSource().- Parameters:
maxResultCount- The global maximum result count defined for this query definition; or -1 if the maximum is not defined in this query definition (in this case the maximum is the one defined by the configuration file).
-
getMaxResultPerSource
int getMaxResultPerSource()Gets the maximum result count to be expected from one search source.
Note: the real maximum result count returned by the running query is computed according to this global maximum , set withsetMaxResultCount(), the maximum defined by the administrator in the configuration file, and finally this maximum result count per source.- Returns:
- The maximum result count defined for each source; or -1 if there is no maximum.
-
setMaxResultPerSource
void setMaxResultPerSource(int maxResultCount) Sets the maximum result count to be expected from one search source.
Note: the real maximum result count returned by the running query is computed according to this global maximum , set withsetMaxResultCount(), the maximum defined by the administrator in the configuration file, and finally this maximum result count per source.- Parameters:
maxResultCount- The maximum result count defined for each source; or -1 if there is no maximum.
-
getMetadataMgr
IDfSearchMetadataManager getMetadataMgr()Provides access to an instance of theIDfSearchMetadataManagerof the query. This instance is owned by the query definition; changing its state will impact the query. For example, using theIDfSearchSourceContainer.addSelectedSource(String)method for this instance will adjust selected sources for the query definition as well.- Returns:
- A reference to the own instance of the
IDfSearchMetadataManager.
-
copy
IDfQueryDefinition copy()Performs a deep copy of the query definition.
-