Class AuditInsertion


  • public class AuditInsertion
    extends Object
    Throw-away object realizing DB insertion of a single AuditEventRecordType and all related subentities. As this is low-level insert using `*Type` classes, it does not clean up delta execution results.
    • Method Detail

      • execute

        public void execute()
        Traditional Sqale "insert root first, then insert children" is not optimal here, because to insert root we need to collect some information from children anyway (namely deltas). So we prepare the subentities in collections, gather the needed information (e.g. changed item paths) and then insert root entity. Then we can insert subentities as well.