Class QShadowReferenceAttributeMapping
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<QShadowReferenceAttribute,MShadowReferenceAttribute,QShadow,MShadow>
com.evolveum.midpoint.repo.sqale.qmodel.shadow.QShadowReferenceAttributeMapping
- All Implemented Interfaces:
QOwnedByMapping<ObjectReferenceType,,MShadowReferenceAttribute, MShadow> SqaleMappingMixin<ObjectReferenceType,QShadowReferenceAttribute, MShadowReferenceAttribute>
public class QShadowReferenceAttributeMapping
extends QReferenceMapping<QShadowReferenceAttribute,MShadowReferenceAttribute,QShadow,MShadow>
-
Field Summary
FieldsFields inherited from class com.evolveum.midpoint.repo.sqale.qmodel.ref.QReferenceMapping
MAPPING_BY_OWNER_TYPE_AND_PATH, referencePathFields inherited from class com.evolveum.midpoint.repo.sqlbase.mapping.QueryModelMapping
logger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedQShadowReferenceAttributeMapping(@NotNull SqaleRepoContext repositoryContext) -
Method Summary
Modifier and TypeMethodDescriptionBiFunction<QShadow,QShadowReferenceAttribute, com.querydsl.core.types.Predicate> Returns a bi-function that constructs correlation query predicate for owner and reference.get()init(@NotNull SqaleRepoContext repositoryContext) insert(Integer pathId, ObjectReferenceType ref, MShadow ownerRow, JdbcSession jdbcSession) newAliasInstance(String alias) Method returning new instance ofEntityPath- to be implemented by sub-mapping.newRowObject(MShadow owner) 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, initRowObject, insert, registerByOwnerTypeAndPathMethods inherited from class com.evolveum.midpoint.repo.sqale.mapping.SqaleTableMapping
addExtensionMapping, binaryMapper, booleanMapper, createFullObject, createRowTransformer, definitionDerivation, definitionDerivationKey, doubleMapper, enumMapper, fullObjectItemsToSkip, getDefinition, getPartitionManager, insert, integerMapper, multiPolyStringMapper, multiStringMapper, multiUriMapper, multiValueMapper, needsInitialization, objectReference, objectReference, objectTypeToQName, parseSchemaObject, parseSchemaObject, polyStringMapper, preprocessCacheableUris, processCacheableRelation, processCacheableUri, processCacheableUri, processCacheableUris, processExtensionColumns, processExtensions, repositoryContext, resolveIdToUri, resolveReferenceNames, resolveUriIdToQName, schemaTypeToObjectType, setPolyString, setReference, storeRefs, stringMapper, stringsToArray, timestampMapper, toSchemaObject, toSchemaObject, toSchemaObjectComplete, toSchemaObjectCompleteSafe, toSchemaObjectInternal, uriMapper, uuidMapperMethods inherited from class com.evolveum.midpoint.repo.sqlbase.mapping.QueryTableMapping
addDetailFetchMapper, addExtensionColumn, appendPaths, defaultAlias, defaultAliasName, detailFetchMappers, getExtensionColumns, joinOn, longMapper, newAlias, newRowObject, paths, prismContext, selectExpressions, selectExpressionsWithCustomColumns, tableName, toString, updateGetOptionsMethods inherited from class com.evolveum.midpoint.repo.sqlbase.mapping.QueryModelMapping
addItemMapping, addRelationResolver, getItemMapper, getItemMappings, getRelationResolver, itemDefinition, itemMapper, queryType, relationResolver, schemaTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
-
-
Constructor Details
-
QShadowReferenceAttributeMapping
-
-
Method Details
-
init
public static QShadowReferenceAttributeMapping init(@NotNull @NotNull SqaleRepoContext repositoryContext) -
get
-
newAliasInstance
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<QShadowReferenceAttribute,MShadowReferenceAttribute, QShadow, MShadow>
-
newRowObject
Description copied from class:QReferenceMappingDefines a contract for creating the reference for the provided owner row.- Specified by:
newRowObjectin interfaceQOwnedByMapping<ObjectReferenceType,MShadowReferenceAttribute, MShadow> - Overrides:
newRowObjectin classQReferenceMapping<QShadowReferenceAttribute,MShadowReferenceAttribute, QShadow, MShadow>
-
insert
public MShadowReferenceAttribute insert(Integer pathId, ObjectReferenceType ref, MShadow ownerRow, JdbcSession jdbcSession) throws SchemaException - Throws:
SchemaException
-
correlationPredicate
public BiFunction<QShadow,QShadowReferenceAttribute, correlationPredicate()com.querydsl.core.types.Predicate> Description copied from class:QReferenceMappingReturns a bi-function that constructs correlation query predicate for owner and reference.- Overrides:
correlationPredicatein classQReferenceMapping<QShadowReferenceAttribute,MShadowReferenceAttribute, QShadow, MShadow>
-