Retrieve project data cached during project initialization

Catalyst allows you to cache your project data in the backend as an app object during initialization.

The SDK snippet below demonstrates how you can use the getProject() method to retrieve the cached app object at any time.

Ensure the following packages are imported:

    
copy
import com.zc.common.ZCProject; import com.zc.component.zcql.ZCQL;
    
copy
ZCProject userProject = ZCProject.getProject("user"); ZCQL.getInstance(userProject).executeQuery("select * from test"); // You must use the getInstance() method to create a ZCQL object with a custom scope that you specify

Last Updated 2023-12-14 16:25:23 +0530 +0530

ON THIS PAGE