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.

Sample Code Snippet


Package Imports
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 2025-09-23 19:47:43 +0530 IST

ON THIS PAGE