com.ibm.mm.sdk.common

Interface dkQueryManager

  • All Superinterfaces:
    dkQueryEvaluator
    All Known Subinterfaces:
    dkDatastore, dkDatastoreIntICM
    All Known Implementing Classes:
    DKDatastoreICM


    public interface dkQueryManager
    extends dkQueryEvaluator
    Interface for managing and creating queries in the CM8 API.

    This interface extends dkQueryEvaluator to provide both query creation and evaluation capabilities. Query managers are responsible for constructing query objects that can be executed against a datastore.

    The query manager supports various query languages and allows parameterized queries through name-value pairs.

    See Also:
    dkQueryEvaluator, dkQuery, dkDatastore
    • Method Detail

      • createQuery

        dkQuery createQuery(java.lang.String command,
                            short commandLangType,
                            DKNVPair[] params)
                     throws DKException,
                            java.lang.Exception
        Creates a query object from a command string.

        This method constructs a query object that can be executed against the datastore. The query is specified using a command string in the given query language, with optional parameters for customization.

        Parameters:
        command - the query command string
        commandLangType - 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
        Returns:
        a query object that can be executed
        Throws:
        DKException - if query creation fails
        java.lang.Exception - if an unexpected error occurs during query creation
Copyright © 2024 IBM Corporation

Copyright © 2024 IBM Corporation. All rights reserved.