TableUtils - isSoloClass()

determines if the table has no parents and no extensions.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Boolean True if the table has no parent and no table is extended from it.

var table = new TableUtils("task");
gs.print("task is solo class: " + table.isSoloClass());
 
var table = new TableUtils("cmdb_ci_win_server");
gs.print("cmdb_ci_win_server is solo class: " + table.isSoloClass());
 
var table = new TableUtils("sys_user");
gs.print("sys_user is solo class: " + table.isSoloClass());
Output:
task is solo class: false
cmdb_ci_win_server is solo class: false
sys_user is solo class: true