Class QAssignmentReferenceMapping<AOR 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<ObjectReferenceType,Q,R>
-
- com.evolveum.midpoint.repo.sqale.qmodel.ref.QReferenceMapping<QAssignmentReference,MAssignmentReference,QAssignment<AOR>,MAssignment>
-
- com.evolveum.midpoint.repo.sqale.qmodel.assignment.QAssignmentReferenceMapping<AOR>
-
- Type Parameters:
AOR- type of the row (M-bean) of the owner (assignment)
- All Implemented Interfaces:
QOwnedByMapping<ObjectReferenceType,MAssignmentReference,MAssignment>,SqaleMappingMixin<ObjectReferenceType,QAssignmentReference,MAssignmentReference>
public class QAssignmentReferenceMapping<AOR extends MObject> extends QReferenceMapping<QAssignmentReference,MAssignmentReference,QAssignment<AOR>,MAssignment>
Mapping betweenQAssignmentReferenceandObjectReferenceType. The mapping is the same for all subtypes, see various static `get*()` methods below. Both mapping instances are initialized (`init*()` methods) inQAssignmentMapping. Init methods can be called multiple times, only one instance for each sub-tables is created.
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.repo.sqale.qmodel.ref.QReferenceMapping
DEFAULT_ALIAS_NAME, MAPPING_BY_OWNER_TYPE_AND_PATH, referencePath
-
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 BiFunction<QAssignment<AOR>,QAssignmentReference,com.querydsl.core.types.Predicate>correlationPredicate()Returns a bi-function that constructs correlation query predicate for owner and reference.static <OR extends MObject>
QAssignmentReferenceMapping<OR>getForAssignmentCreateApprover()static <OR extends MObject>
QAssignmentReferenceMapping<OR>getForAssignmentModifyApprover()static <OR extends MObject>
QAssignmentReferenceMapping<OR>initForAssignmentCreateApprover(@NotNull SqaleRepoContext repositoryContext)static <OR extends MObject>
QAssignmentReferenceMapping<OR>initForAssignmentModifyApprover(@NotNull SqaleRepoContext repositoryContext)protected QAssignmentReferencenewAliasInstance(String alias)Method returning new instance ofEntityPath- to be implemented by sub-mapping.MAssignmentReferencenewRowObject(MAssignment ownerRow)Defines a contract for creating the reference for the provided owner row.-
Methods inherited from class com.evolveum.midpoint.repo.sqale.qmodel.ref.QReferenceMapping
getByOwnerTypeAndPath, init, insert, registerByOwnerTypeAndPath
-
Methods inherited from class com.evolveum.midpoint.repo.sqale.mapping.SqaleTableMapping
addExtensionMapping, binaryMapper, booleanMapper, createFullObject, createRowTransformer, 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, 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
-
-
-
-
Method Detail
-
initForAssignmentCreateApprover
public static <OR extends MObject> QAssignmentReferenceMapping<OR> initForAssignmentCreateApprover(@NotNull @NotNull SqaleRepoContext repositoryContext)
-
getForAssignmentCreateApprover
public static <OR extends MObject> QAssignmentReferenceMapping<OR> getForAssignmentCreateApprover()
-
initForAssignmentModifyApprover
public static <OR extends MObject> QAssignmentReferenceMapping<OR> initForAssignmentModifyApprover(@NotNull @NotNull SqaleRepoContext repositoryContext)
-
getForAssignmentModifyApprover
public static <OR extends MObject> QAssignmentReferenceMapping<OR> getForAssignmentModifyApprover()
-
newAliasInstance
protected QAssignmentReference 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 classQReferenceMapping<QAssignmentReference,MAssignmentReference,QAssignment<AOR extends MObject>,MAssignment>
-
newRowObject
public MAssignmentReference newRowObject(MAssignment ownerRow)
Description copied from class:QReferenceMappingDefines a contract for creating the reference for the provided owner row.- Specified by:
newRowObjectin interfaceQOwnedByMapping<ObjectReferenceType,MAssignmentReference,MAssignment>- Overrides:
newRowObjectin classQReferenceMapping<QAssignmentReference,MAssignmentReference,QAssignment<AOR extends MObject>,MAssignment>
-
correlationPredicate
public BiFunction<QAssignment<AOR>,QAssignmentReference,com.querydsl.core.types.Predicate> correlationPredicate()
Description copied from class:QReferenceMappingReturns a bi-function that constructs correlation query predicate for owner and reference.- Overrides:
correlationPredicatein classQReferenceMapping<QAssignmentReference,MAssignmentReference,QAssignment<AOR extends MObject>,MAssignment>
-
-