Class AuditInsertion

java.lang.Object
com.evolveum.midpoint.repo.sqale.audit.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.
  • Constructor Details

  • Method Details

    • 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.