Class QTaskMapping
- 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<S,Q,R>
-
- com.evolveum.midpoint.repo.sqale.qmodel.object.QObjectMapping<S,Q,R>
-
- com.evolveum.midpoint.repo.sqale.qmodel.object.QAssignmentHolderMapping<TaskType,QTask,MTask>
-
- com.evolveum.midpoint.repo.sqale.qmodel.task.QTaskMapping
-
- All Implemented Interfaces:
SqaleMappingMixin<TaskType,QTask,MTask>
public class QTaskMapping extends QAssignmentHolderMapping<TaskType,QTask,MTask>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQTaskMapping.FullResultDeltaProcessor
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_ALIAS_NAME-
Fields inherited from class com.evolveum.midpoint.repo.sqlbase.mapping.QueryModelMapping
logger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PathSetfullObjectItemsToSkip()static QTaskMappingget()static QTaskMappinginit(@NotNull SqaleRepoContext repositoryContext)protected QTasknewAliasInstance(String alias)Method returning new instance ofEntityPath- to be implemented by sub-mapping.MTasknewRowObject()@NotNull com.querydsl.core.types.Path<?>[]selectExpressions(QTask entity, Collection<SelectorOptions<GetOperationOptions>> options)By default, usesQueryTableMapping.selectExpressionsWithCustomColumns(Q)and does not use options.@NotNull MTasktoRowObjectWithoutFullObject(TaskType task, JdbcSession jdbcSession)Override this to fill additional row attributes after calling this super version.TaskTypetoSchemaObject(@NotNull com.querydsl.core.Tuple row, @NotNull QTask entityPath, @NotNull JdbcSession jdbcSession, Collection<SelectorOptions<GetOperationOptions>> options)Transforms row Tuple containingSqaleTableMappingunder entity path and extension columns.-
Methods inherited from class com.evolveum.midpoint.repo.sqale.qmodel.object.QAssignmentHolderMapping
getAssignmentHolderMapping, initAssignmentHolderMapping, storeRelatedEntities
-
Methods inherited from class com.evolveum.midpoint.repo.sqale.qmodel.object.QObjectMapping
getObjectMapping, initObjectMapping, setFullObject, toSchemaObjectCompleteSafe
-
Methods inherited from class com.evolveum.midpoint.repo.sqale.mapping.SqaleTableMapping
addExtensionMapping, binaryMapper, booleanMapper, createFullObject, createRowTransformer, enumMapper, insert, integerMapper, multiPolyStringMapper, multiStringMapper, multiUriMapper, multiValueMapper, needsInitialization, objectReference, objectReference, objectTypeToQName, parseSchemaObject, parseSchemaObject, polyStringMapper, processCacheableRelation, processCacheableUri, processCacheableUri, processCacheableUris, processExtensionColumns, processExtensions, repositoryContext, resolveIdToUri, resolveReferenceNames, resolveUriIdToQName, schemaTypeToObjectType, setPolyString, setReference, storeRefs, stringMapper, stringsToArray, timestampMapper, toSchemaObject, toSchemaObjectComplete, toSchemaObjectInternal, uriMapper, uuidMapper
-
Methods inherited from class com.evolveum.midpoint.repo.sqlbase.mapping.QueryTableMapping
addDetailFetchMapper, addExtensionColumn, defaultAlias, defaultAliasName, detailFetchMappers, getExtensionColumns, joinOn, longMapper, newAlias, prismContext, 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 Detail
-
DEFAULT_ALIAS_NAME
public static final String DEFAULT_ALIAS_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public static QTaskMapping init(@NotNull @NotNull SqaleRepoContext repositoryContext)
-
get
public static QTaskMapping get()
-
selectExpressions
@NotNull public @NotNull com.querydsl.core.types.Path<?>[] selectExpressions(QTask entity, Collection<SelectorOptions<GetOperationOptions>> options)
Description copied from class:QueryTableMappingBy default, usesQueryTableMapping.selectExpressionsWithCustomColumns(Q)and does not use options. Can be overridden to fulfil other needs, e.g. to select just full object.- Overrides:
selectExpressionsin classQObjectMapping<TaskType,QTask,MTask>
-
newAliasInstance
protected QTask newAliasInstance(String alias)
Description copied from class:QueryTableMappingMethod 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.- Overrides:
newAliasInstancein classQAssignmentHolderMapping<TaskType,QTask,MTask>
-
newRowObject
public MTask newRowObject()
- Overrides:
newRowObjectin classQObjectMapping<TaskType,QTask,MTask>
-
fullObjectItemsToSkip
protected PathSet fullObjectItemsToSkip()
- Overrides:
fullObjectItemsToSkipin classSqaleTableMapping<TaskType,QTask,MTask>
-
toRowObjectWithoutFullObject
@NotNull public @NotNull MTask toRowObjectWithoutFullObject(TaskType task, JdbcSession jdbcSession)
Description copied from class:QObjectMappingOverride this to fill additional row attributes after calling this super version. *This must be called with active JDBC session* so it can create newQUrirows. As this is intended for inserts *DO NOT* setMObject.objectTypeto any value, it must be NULL otherwise the DB will complain about the value for the generated column. OID may be null, hence the method does NOT create any sub-entities, seeQObjectMapping.storeRelatedEntities(MObject, ObjectType, JdbcSession). Try to keep order of fields here, in M-class (MObject for this one) and in SQL the same.- Overrides:
toRowObjectWithoutFullObjectin classQObjectMapping<TaskType,QTask,MTask>
-
toSchemaObject
public TaskType toSchemaObject(@NotNull @NotNull com.querydsl.core.Tuple row, @NotNull @NotNull QTask entityPath, @NotNull @NotNull JdbcSession jdbcSession, Collection<SelectorOptions<GetOperationOptions>> options) throws SchemaException
Description copied from class:SqaleTableMappingTransforms row Tuple containingSqaleTableMappingunder entity path and extension columns. While public, for Sqale repo it should only be called for internal mapping purposes. *Do not call this in result list transformers* because the results would not have resolved reference names (if requested). Notice that the default implementation ofSqaleTableMapping.createRowTransformer(com.evolveum.midpoint.repo.sqlbase.SqlQueryContext<S, Q, R>, com.evolveum.midpoint.repo.sqlbase.JdbcSession)in this class callsSqaleTableMapping.toSchemaObjectCompleteSafe(com.querydsl.core.Tuple, Q, java.util.Collection<com.evolveum.midpoint.schema.SelectorOptions<com.evolveum.midpoint.schema.GetOperationOptions>>, com.evolveum.midpoint.repo.sqlbase.JdbcSession, boolean)which is the right thing to call in result list transformers.- Overrides:
toSchemaObjectin classQObjectMapping<TaskType,QTask,MTask>- Throws:
SchemaException
-
-