com.ibm.mm.sdk.common
Interface dkQueryEvaluator
-
- All Known Subinterfaces:
- dkDatastore, dkDatastoreIntICM, dkQueryManager
- All Known Implementing Classes:
- DKDatastoreICM, dkQueryableCollection, DKResults
public interface dkQueryEvaluatorInterface for evaluating queries against a CM8 datastore.This interface defines the contract for executing queries and retrieving results. Query evaluators process query strings in various query languages (such as SQL or XQPE) and return the matching objects from the datastore.
The evaluation process typically involves parsing the query, executing it against the underlying content repository, and wrapping the results in CM8-compatible objects.
- See Also:
dkQueryManager,dkDatastore
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.Objectevaluate(java.lang.String query, short qlType, DKNVPair[] params)Evaluates a query and returns the results.
-
-
-
Method Detail
-
evaluate
java.lang.Object evaluate(java.lang.String query, short qlType, DKNVPair[] params) throws DKException, java.lang.ExceptionEvaluates a query and returns the results.This method executes the specified query string using the given query language and optional parameters. The results are returned as a collection of data objects that match the query criteria.
- Parameters:
query- the query string to evaluateqlType- the query language type (e.g., DK_CM_XQPE_QL_TYPE for XQPE, DK_CM_SQL for SQL)params- optional array of name-value pairs for query parameters and options- Returns:
- the query results, typically as a DKResults collection or similar object
- Throws:
DKException- if the query evaluation failsjava.lang.Exception- if an unexpected error occurs during evaluation
-
-