Class QOperationExecutionMapping<OR extends MObject>
- 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.common.QContainerMapping<OperationExecutionType,QOperationExecution<OR>,MOperationExecution,OR>
-
- com.evolveum.midpoint.repo.sqale.qmodel.object.QOperationExecutionMapping<OR>
-
- Type Parameters:
OR- type of the owner row
- All Implemented Interfaces:
QOwnedByMapping<OperationExecutionType,MOperationExecution,OR>,SqaleMappingMixin<OperationExecutionType,QOperationExecution<OR>,MOperationExecution>
public class QOperationExecutionMapping<OR extends MObject> extends QContainerMapping<OperationExecutionType,QOperationExecution<OR>,MOperationExecution,OR>
Mapping betweenQOperationExecutionandOperationExecutionType.
-
-
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
-
Methods inherited from class com.evolveum.midpoint.repo.sqale.qmodel.common.QContainerMapping
containerIdentityPredicate, initContainerMapping, initRowObject
-
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, processExtensionColumns, 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, 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 Detail
-
DEFAULT_ALIAS_NAME
public static final String DEFAULT_ALIAS_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public static <OR extends MObject> QOperationExecutionMapping<OR> init(@NotNull @NotNull SqaleRepoContext repositoryContext)
-
get
public static <OR extends MObject> QOperationExecutionMapping<OR> get()
-
newAliasInstance
protected QOperationExecution<OR> 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 classQContainerMapping<OperationExecutionType,QOperationExecution<OR extends MObject>,MOperationExecution,OR extends MObject>
-
newRowObject
public MOperationExecution newRowObject()
- Overrides:
newRowObjectin classQueryTableMapping<OperationExecutionType,QOperationExecution<OR extends MObject>,MOperationExecution>
-
newRowObject
public MOperationExecution newRowObject(OR ownerRow)
Description copied from interface:QOwnedByMappingReturns a row with foreign key fields referencing the provided owner row.- Specified by:
newRowObjectin interfaceQOwnedByMapping<OperationExecutionType,MOperationExecution,OR extends MObject>- Overrides:
newRowObjectin classQContainerMapping<OperationExecutionType,QOperationExecution<OR extends MObject>,MOperationExecution,OR extends MObject>
-
insert
public MOperationExecution insert(OperationExecutionType schemaObject, OR ownerRow, JdbcSession jdbcSession)
- Specified by:
insertin interfaceQOwnedByMapping<OperationExecutionType,MOperationExecution,OR extends MObject>- Overrides:
insertin classQContainerMapping<OperationExecutionType,QOperationExecution<OR extends MObject>,MOperationExecution,OR extends MObject>
-
toSchemaObject
public OperationExecutionType toSchemaObject(MOperationExecution row)
Description copied from class:QContainerMappingImplemented for searchable containers that do not use fullObject for their recreation.- Overrides:
toSchemaObjectin classQContainerMapping<OperationExecutionType,QOperationExecution<OR extends MObject>,MOperationExecution,OR extends MObject>
-
createRowTransformer
public ResultListRowTransformer<OperationExecutionType,QOperationExecution<OR>,MOperationExecution> createRowTransformer(SqlQueryContext<OperationExecutionType,QOperationExecution<OR>,MOperationExecution> sqlQueryContext, JdbcSession jdbcSession)
Description copied from class:QueryTableMappingReturns result transformer that by default callsQueryTableMapping.toSchemaObject(Tuple, FlexibleRelationalPathBase, JdbcSession, Collection)for each result row. This can be overridden, seeResultListRowTransformerjavadoc for details. This is useful for stateful transformers where the whole result can be pre-/post-processed as well.- Overrides:
createRowTransformerin classSqaleTableMapping<OperationExecutionType,QOperationExecution<OR extends MObject>,MOperationExecution>
-
-