rootSurrogateKey

Returns the surrogate key of the root parent entity.

Syntax

- (long)rootSurrogateKey

Parameters

None.

Returns

The surrogateKey of the root entity.

Examples

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