rootEntityType

Returns the name of the root parent entity type.

Syntax

- (int)rootEntityType

Parameters

None.

Returns

Returns the root entity type which is the root of the object graph.

Examples

  • Get the Root Entity Type
    SUPObjectList *changeLogs = [SUP101SUP101DB getChangeLogs:[SUPQuery getInstance]];
    if([changeLogs size] > 0)
    {
        for (id<SUPChangeLog> cl in changeLogs)
        {
           MBOLogInfo(@"changelog:[rootEntityType=%d]\n", [cl rootEntityType]);
        }
    }