surrogateKey

Returns the surrogate key of the entity.

Syntax

- (long)surrogateKey

Parameters

None.

Returns

The surrogate key of the affected entity. Note that the change log contains all affected entities, including children of the object graph.

Examples

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