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:
import com.zc.common.ZCProject; import com.zc.component.zcql.ZCQL;
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-09-03 01:06:41 +0530 +0530
Send your feedback to us