Class AuditEventRecordSqlTransformer
- java.lang.Object
-
- com.evolveum.midpoint.repo.sql.pure.SqlTransformer<AuditEventRecordType,QAuditEventRecord,MAuditEventRecord>
-
- com.evolveum.midpoint.repo.sql.pure.querymodel.mapping.AuditEventRecordSqlTransformer
-
public class AuditEventRecordSqlTransformer extends SqlTransformer<AuditEventRecordType,QAuditEventRecord,MAuditEventRecord>
Transformation of audit event records between repo and Prism world.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.evolveum.midpoint.repo.sql.pure.SqlTransformer
SqlTransformer.SqlTransformationException
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.repo.sql.pure.SqlTransformer
mapping, prismContext, querydslConfiguration
-
-
Constructor Summary
Constructors Constructor Description AuditEventRecordSqlTransformer(PrismContext prismContext, QAuditEventRecordMapping mapping, com.querydsl.sql.Configuration querydslConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MAuditEventRecord
from(AuditEventRecord record)
TransformsAuditEventRecord
toMAuditEventRecord
without any subentities.protected void
processExtensionColumns(AuditEventRecordType schemaObject, com.querydsl.core.Tuple tuple, QAuditEventRecord entityPath)
AuditEventRecordType
toSchemaObject(MAuditEventRecord row)
Transforms row of R to M type - typically a model/schema object.-
Methods inherited from class com.evolveum.midpoint.repo.sql.pure.SqlTransformer
objectReferenceType, repoObjectType, repoObjectType, toSchemaObject, toSchemaObjectSafe, toSchemaObjectSafe, trim
-
-
-
-
Constructor Detail
-
AuditEventRecordSqlTransformer
public AuditEventRecordSqlTransformer(PrismContext prismContext, QAuditEventRecordMapping mapping, com.querydsl.sql.Configuration querydslConfiguration)
-
-
Method Detail
-
toSchemaObject
public AuditEventRecordType toSchemaObject(MAuditEventRecord row) throws SchemaException
Description copied from class:SqlTransformer
Transforms row of R to M type - typically a model/schema object. If pre-generated bean is used as row it does not include extension (dynamic) columns, which is OK if extension columns are used only for query and their information is still contained in the object somehow else (e.g. full object LOB).Alternative would be dynamically generated list of select expressions and transforming row to M object directly from
Tuple
.- Specified by:
toSchemaObject
in classSqlTransformer<AuditEventRecordType,QAuditEventRecord,MAuditEventRecord>
- Throws:
SchemaException
-
from
public MAuditEventRecord from(AuditEventRecord record)
TransformsAuditEventRecord
toMAuditEventRecord
without any subentities.Design notes: Arguably, this code could be in
MAuditEventRecord
. Also the
-
processExtensionColumns
protected void processExtensionColumns(AuditEventRecordType schemaObject, com.querydsl.core.Tuple tuple, QAuditEventRecord entityPath)
- Overrides:
processExtensionColumns
in classSqlTransformer<AuditEventRecordType,QAuditEventRecord,MAuditEventRecord>
-
-