Class QAuditEventRecordMapping
java.lang.Object
com.evolveum.midpoint.repo.sqlbase.mapping.QueryModelMapping<S,Q,R>
com.evolveum.midpoint.repo.sqlbase.mapping.QueryTableMapping<S,Q,R>
com.evolveum.midpoint.repo.sqale.mapping.SqaleTableMapping<AuditEventRecordType,QAuditEventRecord,MAuditEventRecord>
com.evolveum.midpoint.repo.sqale.audit.qmodel.QAuditEventRecordMapping
- All Implemented Interfaces:
SqaleMappingMixin<AuditEventRecordType,
QAuditEventRecord, MAuditEventRecord>
public class QAuditEventRecordMapping
extends SqaleTableMapping<AuditEventRecordType,QAuditEventRecord,MAuditEventRecord>
Mapping between
QAuditEventRecord
and AuditEventRecordType
.
This often uses mapping supporting both query and update, but update is not intended.-
Field Summary
Fields inherited from class com.evolveum.midpoint.repo.sqlbase.mapping.QueryModelMapping
logger
-
Method Summary
Modifier and TypeMethodDescriptioncreateRowTransformer
(SqlQueryContext<AuditEventRecordType, QAuditEventRecord, MAuditEventRecord> sqlQueryContext, JdbcSession jdbcSession) Returns result transformer that by default callsQueryTableMapping.toSchemaObject(Tuple, FlexibleRelationalPathBase, JdbcSession, Collection)
for each result row.static QAuditEventRecordMapping
get()
static QAuditEventRecordMapping
init
(@NotNull SqaleRepoContext repositoryContext) protected QAuditEventRecord
newAliasInstance
(String alias) Method returning new instance ofEntityPath
- to be implemented by sub-mapping.protected void
processExtensionColumns
(AuditEventRecordType schemaObject, com.querydsl.core.Tuple tuple, QAuditEventRecord entityPath) toRowObject
(AuditEventRecord record) TransformsAuditEventRecord
toMAuditEventRecord
without any subentities.toRowObject
(AuditEventRecordType record) TransformsAuditEventRecordType
toMAuditEventRecord
without any subentities.Transforms row ofQueryTableMapping
type to schema typeQueryTableMapping
.Methods inherited from class com.evolveum.midpoint.repo.sqale.mapping.SqaleTableMapping
addExtensionMapping, binaryMapper, booleanMapper, createFullObject, enumMapper, fullObjectItemsToSkip, insert, integerMapper, multiPolyStringMapper, multiStringMapper, multiUriMapper, multiValueMapper, needsInitialization, objectReference, objectReference, objectTypeToQName, parseSchemaObject, parseSchemaObject, polyStringMapper, processCacheableRelation, processCacheableUri, processCacheableUri, processCacheableUris, processExtensions, repositoryContext, resolveIdToUri, resolveReferenceNames, resolveUriIdToQName, schemaTypeToObjectType, setPolyString, setReference, storeRefs, stringMapper, stringsToArray, timestampMapper, toSchemaObject, toSchemaObjectComplete, toSchemaObjectCompleteSafe, toSchemaObjectInternal, uriMapper, uuidMapper
Methods inherited from class com.evolveum.midpoint.repo.sqlbase.mapping.QueryTableMapping
addDetailFetchMapper, addExtensionColumn, defaultAlias, defaultAliasName, detailFetchMappers, getExtensionColumns, joinOn, longMapper, newAlias, newRowObject, prismContext, selectExpressions, selectExpressionsWithCustomColumns, tableName, toString, updateGetOptions
Methods inherited from class com.evolveum.midpoint.repo.sqlbase.mapping.QueryModelMapping
addItemMapping, addRelationResolver, getItemMapper, getItemMappings, getRelationResolver, itemDefinition, itemMapper, queryType, relationResolver, schemaType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.repo.sqale.mapping.SqaleMappingMixin
addAuditRefMapping, addContainerTableMapping, addExtensionMapping, addItemMapping, addNestedMapping, addRefMapping, addRefMapping, addRelationResolver, afterModify, queryType
-
Field Details
-
DEFAULT_ALIAS_NAME
- See Also:
-
-
Method Details
-
init
-
get
-
newAliasInstance
Description copied from class:QueryTableMapping
Method returning new instance ofEntityPath
- to be implemented by sub-mapping. This will create entity path without any extension columns, seeQueryTableMapping.newAlias(java.lang.String)
for that.- Specified by:
newAliasInstance
in classQueryTableMapping<AuditEventRecordType,
QAuditEventRecord, MAuditEventRecord>
-
toSchemaObject
Description copied from class:QueryTableMapping
Transforms row ofQueryTableMapping
type to schema typeQueryTableMapping
. 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 is to dynamically generate the list of select expressions reading directly from theTuple
- seeQueryTableMapping.toSchemaObject(Tuple, FlexibleRelationalPathBase, JdbcSession, Collection)
.- Overrides:
toSchemaObject
in classSqaleTableMapping<AuditEventRecordType,
QAuditEventRecord, MAuditEventRecord>
-
toRowObject
TransformsAuditEventRecord
toMAuditEventRecord
without any subentities. -
toRowObject
TransformsAuditEventRecordType
toMAuditEventRecord
without any subentities. -
processExtensionColumns
protected void processExtensionColumns(AuditEventRecordType schemaObject, com.querydsl.core.Tuple tuple, QAuditEventRecord entityPath) - Overrides:
processExtensionColumns
in classSqaleTableMapping<AuditEventRecordType,
QAuditEventRecord, MAuditEventRecord>
-
createRowTransformer
public ResultListRowTransformer<AuditEventRecordType,QAuditEventRecord, createRowTransformerMAuditEventRecord> (SqlQueryContext<AuditEventRecordType, QAuditEventRecord, MAuditEventRecord> sqlQueryContext, JdbcSession jdbcSession) Description copied from class:QueryTableMapping
Returns result transformer that by default callsQueryTableMapping.toSchemaObject(Tuple, FlexibleRelationalPathBase, JdbcSession, Collection)
for each result row. This can be overridden, seeResultListRowTransformer
javadoc for details. This is useful for stateful transformers where the whole result can be pre-/post-processed as well.- Overrides:
createRowTransformer
in classSqaleTableMapping<AuditEventRecordType,
QAuditEventRecord, MAuditEventRecord>
-