com.ibm.mm.sdk.common

Interface dkQueryEvaluator

  • All Known Subinterfaces:
    dkDatastore, dkDatastoreIntICM, dkQueryManager
    All Known Implementing Classes:
    DKDatastoreICM, dkQueryableCollection, DKResults


    public interface dkQueryEvaluator
    Interface 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 Detail

      • evaluate

        java.lang.Object evaluate(java.lang.String query,
                                  short qlType,
                                  DKNVPair[] params)
                           throws DKException,
                                  java.lang.Exception
        Evaluates 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 evaluate
        qlType - 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 fails
        java.lang.Exception - if an unexpected error occurs during evaluation
Copyright © 2024 IBM Corporation

Copyright © 2024 IBM Corporation. All rights reserved.