Class QAssignmentMapping<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<S,Q,R,OR>
com.evolveum.midpoint.repo.sqale.qmodel.common.QContainerWithFullObjectMapping<AssignmentType,QAssignment<OR>,MAssignment,OR>
com.evolveum.midpoint.repo.sqale.qmodel.assignment.QAssignmentMapping<OR>
- Type Parameters:
OR
- type of the owner row
- All Implemented Interfaces:
QOwnedByMapping<AssignmentType,
,MAssignment, OR> SqaleMappingMixin<AssignmentType,
,QAssignment<OR>, MAssignment> QSeparatelySerializedItem<QAssignment<OR>,
MAssignment>
public class QAssignmentMapping<OR extends MObject>
extends QContainerWithFullObjectMapping<AssignmentType,QAssignment<OR>,MAssignment,OR>
Mapping between
QAssignment
and AssignmentType
.
There are separate instances for assignments and inducements and the instance also knows
the MContainer.containerType
it should set.
Only the instance for assignments is registered for queries as there is no way to distinguish
between assignments and inducements when searching containers in the Query API anyway.-
Field Summary
Fields inherited from class com.evolveum.midpoint.repo.sqlbase.mapping.QueryModelMapping
logger
-
Method Summary
Modifier and TypeMethodDescriptioncom.querydsl.core.types.Predicate
allOwnedBy
(QAssignment<OR> orqAssignment, Collection<UUID> oidList) protected CheckedFunction<SchemaRegistryState,
ItemDefinition<?>, SystemException> protected SchemaRegistryState.DerivationKey<ItemDefinition<?>>
static <OR extends MObject>
QAssignmentMapping<OR>static <OR extends MObject>
QAssignmentMapping<OR>static <OR extends MObject>
QAssignmentMapping<OR>initAssignmentMapping
(@NotNull SqaleRepoContext repositoryContext) static <OR extends MObject>
QAssignmentMapping<OR>initInducementMapping
(@NotNull SqaleRepoContext repositoryContext) insert
(AssignmentType assignment, OR ownerRow, JdbcSession jdbcSession) protected QAssignment<OR>
newAliasInstance
(String alias) Method returning new instance ofEntityPath
- to be implemented by sub-mapping.newRowObject
(OR ownerRow) Returns a row with foreign key fields referencing the provided owner row.com.querydsl.core.types.OrderSpecifier<?>
orderSpecifier
(QAssignment<OR> orqAssignment) void
setStoreFullObject
(boolean value) Methods inherited from class com.evolveum.midpoint.repo.sqale.qmodel.common.QContainerWithFullObjectMapping
afterModify, createAlias, fullObjectExpressions, getOwner, getPrismItemType, hasFullObject, initRowObjectWithFullObject, toSchemaObject, toSchemaObjectEmbedded, useDeltaApplyResults
Methods inherited from class com.evolveum.midpoint.repo.sqale.qmodel.common.QContainerMapping
attachContainerIdPath, attachOwnerOid, containerDepth, containerIdentityPredicate, containerIdPath, initContainerMapping, initRowObject, selectExpressions, toSchemaObject
Methods inherited from class com.evolveum.midpoint.repo.sqale.mapping.SqaleTableMapping
addExtensionMapping, binaryMapper, booleanMapper, createFullObject, createRowTransformer, 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, toSchemaObjectComplete, toSchemaObjectCompleteSafe, toSchemaObjectInternal, uriMapper, uuidMapper
Methods inherited from class com.evolveum.midpoint.repo.sqlbase.mapping.QueryTableMapping
addDetailFetchMapper, addExtensionColumn, appendPaths, defaultAlias, defaultAliasName, detailFetchMappers, getExtensionColumns, joinOn, longMapper, newAlias, paths, 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.qmodel.object.QSeparatelySerializedItem
tableName
Methods inherited from interface com.evolveum.midpoint.repo.sqale.mapping.SqaleMappingMixin
addAuditRefMapping, addContainerTableMapping, addExtensionMapping, addItemMapping, addNestedMapping, addRefMapping, addRefMapping, addRelationResolver, queryType
-
Field Details
-
DEFAULT_ALIAS_NAME
- See Also:
-
-
Method Details
-
initAssignmentMapping
public static <OR extends MObject> QAssignmentMapping<OR> initAssignmentMapping(@NotNull @NotNull SqaleRepoContext repositoryContext) -
getAssignmentMapping
-
initInducementMapping
public static <OR extends MObject> QAssignmentMapping<OR> initInducementMapping(@NotNull @NotNull SqaleRepoContext repositoryContext) -
getInducementMapping
-
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.- Overrides:
newAliasInstance
in classQContainerMapping<AssignmentType,
QAssignment<OR extends MObject>, MAssignment, OR extends MObject>
-
newRowObject
- Overrides:
newRowObject
in classQueryTableMapping<AssignmentType,
QAssignment<OR extends MObject>, MAssignment>
-
newRowObject
Description copied from interface:QOwnedByMapping
Returns a row with foreign key fields referencing the provided owner row.- Specified by:
newRowObject
in interfaceQOwnedByMapping<AssignmentType,
MAssignment, OR extends MObject> - Overrides:
newRowObject
in classQContainerMapping<AssignmentType,
QAssignment<OR extends MObject>, MAssignment, OR extends MObject>
-
toSchemaObjectLegacy
- Specified by:
toSchemaObjectLegacy
in classQContainerWithFullObjectMapping<AssignmentType,
QAssignment<OR extends MObject>, MAssignment, OR extends MObject>
-
insert
public MAssignment insert(AssignmentType assignment, OR ownerRow, JdbcSession jdbcSession) throws SchemaException - Specified by:
insert
in interfaceQOwnedByMapping<AssignmentType,
MAssignment, OR extends MObject> - Overrides:
insert
in classQContainerMapping<AssignmentType,
QAssignment<OR extends MObject>, MAssignment, OR extends MObject> - Throws:
SchemaException
-
getItemPath
- Specified by:
getItemPath
in interfaceQSeparatelySerializedItem<QAssignment<OR extends MObject>,
MAssignment> - Specified by:
getItemPath
in classQContainerWithFullObjectMapping<AssignmentType,
QAssignment<OR extends MObject>, MAssignment, OR extends MObject>
-
allOwnedBy
public com.querydsl.core.types.Predicate allOwnedBy(QAssignment<OR> orqAssignment, Collection<UUID> oidList) - Specified by:
allOwnedBy
in interfaceQSeparatelySerializedItem<QAssignment<OR extends MObject>,
MAssignment> - Overrides:
allOwnedBy
in classQContainerWithFullObjectMapping<AssignmentType,
QAssignment<OR extends MObject>, MAssignment, OR extends MObject>
-
orderSpecifier
-
setStoreFullObject
@VisibleForTesting public void setStoreFullObject(boolean value) -
definitionDerivationKey
- Specified by:
definitionDerivationKey
in classQContainerWithFullObjectMapping<AssignmentType,
QAssignment<OR extends MObject>, MAssignment, OR extends MObject>
-
definitionDerivation
protected CheckedFunction<SchemaRegistryState,ItemDefinition<?>, definitionDerivation()SystemException> - Specified by:
definitionDerivation
in classQContainerWithFullObjectMapping<AssignmentType,
QAssignment<OR extends MObject>, MAssignment, OR extends MObject>
-