ZCQL

ZCQL is Catalyst’s own query language that enables you to perform data retrieval, insertion, updating, and deletion operations on the tables in the Catalyst Data Store. You can execute a variety of DML queries using ZCQL to obtain or manipulate data, and use various clauses and statements such as the SQL Join clauses, Groupby and OrderBy statements, and built-in SQL functions.

Execute ZCQL Queries

You can retrieve, insert, update, or delete data from a table in the Data Store by writing a query for it. The ZCQL query is constructed and passed to the executeQuery() method for execution. The response will contain the records you fetch using the SELECT query, or the response generated for the other operations.

Ensure the following packages are imported:

    
copy
import com.zc.component.object.ZCRowObject; import com.zc.component.zcql.ZCQL;
    
copy
import com.zc.component.object.ZCRowObject; import com.zc.component.zcql.ZCQL; //Construct the query to be executed String query = "select * from empDetails limit 10"; //Get the ZCQL instance and execute query using the query string ArrayList <ZCRowObject> rowList = ZCQL.getInstance().executeQuery(query);

Last Updated 2023-09-03 01:06:41 +0530 +0530