Class AuditInsertion
java.lang.Object
com.evolveum.midpoint.repo.sqale.audit.AuditInsertion
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 Summary
ConstructorDescriptionAuditInsertion
(AuditEventRecordType record, JdbcSession jdbcSession, SqaleRepoContext repoContext, boolean escapeIllegalCharacters, Trace logger) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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).
-
Constructor Details
-
AuditInsertion
public AuditInsertion(AuditEventRecordType record, JdbcSession jdbcSession, SqaleRepoContext repoContext, boolean escapeIllegalCharacters, Trace logger)
-
-
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.
-