ITrackable

Interface for data objects that can track their changes, including logical deletion.

Implements: IChangeable

Description

The ITrackagle interface allows you to define data objects that can track their changes, including logical deletion.

Fields

create_time

UTC time at which the object was created.

abstract create_time: DateTime

change_time

UTC time at which the object was last changed (created, updated, or deleted).

@override

abstract change_time: DateTime

deleted

Logical deletion flag. True when object is deleted and null or false otherwise

abstract deleted: bool

Examples

class MyData implements IStringIdentifiable, ITrackable {
    String id;
    String  field1;
    int field2;
    ...
    @override
    DateTime change_time;
    @override
    DateTime create_time;
    @override
    bool deleted;
}

See also