Get Table Instance

Get the table instance using tableID

An empty table instance is created as the first step to refer a table and perform its operations.This is done through the getTableInstance() method which actually doesn’t fire a server side call. This does not hold any values.

Ensure the following packages are imported:

    
copy
import com.zc.component.object.ZCObject; import com.zc.component.object.ZCTable;
    
copy
//Create a base Object Instance ZCObject object = ZCObject.getInstance(); //Get a Table Instance referring the tableID on base object ZCTable tableMeta =object.getTableInstance(1510000000110121L);

Get the table instance using table name

Table name is passed as an argument here to refer the table, without firing the server side call which is equivalent to the previous case.

Ensure the following packages are imported:

    
copy
import com.zc.component.object.ZCObject; import com.zc.component.object.ZCTable;
    
copy
//Create Base Object Instance ZCObject object = ZCObject.getInstance(); //Get a Table Instance referring the table ID on base object ZCTable tableMeta = object.getTableInstance("SampleTable");

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