Class QAccessCertificationCaseMapping
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<AccessCertificationCaseType,QAccessCertificationCase,MAccessCertificationCase,MAccessCertificationCampaign>
com.evolveum.midpoint.repo.sqale.qmodel.accesscert.QAccessCertificationCaseMapping
- All Implemented Interfaces:
QOwnedByMapping<AccessCertificationCaseType,
,MAccessCertificationCase, MAccessCertificationCampaign> SqaleMappingMixin<AccessCertificationCaseType,
QAccessCertificationCase, MAccessCertificationCase>
public class QAccessCertificationCaseMapping
extends QContainerMapping<AccessCertificationCaseType,QAccessCertificationCase,MAccessCertificationCase,MAccessCertificationCampaign>
Mapping between
QAccessCertificationCase
and AccessCertificationCaseType
.-
Field Summary
Fields inherited from class com.evolveum.midpoint.repo.sqlbase.mapping.QueryModelMapping
logger
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterModify
(SqaleUpdateContext<AccessCertificationCaseType, QAccessCertificationCase, MAccessCertificationCase> updateContext) Method called from `SqaleUpdateContext.finishExecutionOwn()` for containers.ResultListRowTransformer<AccessCertificationCaseType,
QAccessCertificationCase, MAccessCertificationCase> createRowTransformer
(SqlQueryContext<AccessCertificationCaseType, QAccessCertificationCase, MAccessCertificationCase> sqlQueryContext, JdbcSession jdbcSession) Returns result transformer that by default callsQueryTableMapping.toSchemaObject(Tuple, FlexibleRelationalPathBase, JdbcSession, Collection)
for each result row.initAccessCertificationCaseMapping
(@NotNull SqaleRepoContext repositoryContext) insert
(AccessCertificationCaseType acase, MAccessCertificationCampaign ownerRow, JdbcSession jdbcSession) protected QAccessCertificationCase
newAliasInstance
(String alias) Method returning new instance ofEntityPath
- to be implemented by sub-mapping.newRowObject
(MAccessCertificationCampaign ownerRow) Returns a row with foreign key fields referencing the provided owner row.@NotNull com.querydsl.core.types.Path<?>[]
selectExpressions
(QAccessCertificationCase entity, Collection<SelectorOptions<GetOperationOptions>> options) By default, usesQueryTableMapping.selectExpressionsWithCustomColumns(Q)
and does not use options.toSchemaObject
(@NotNull com.querydsl.core.Tuple row, @NotNull QAccessCertificationCase entityPath, @NotNull JdbcSession jdbcSession, Collection<SelectorOptions<GetOperationOptions>> options) Transforms row Tuple containingSqaleTableMapping
under entity path and extension columns.Methods inherited from class com.evolveum.midpoint.repo.sqale.qmodel.common.QContainerMapping
attachOwnerOid, containerIdentityPredicate, initContainerMapping, initRowObject, toSchemaObject
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, 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, 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, queryType
-
Field Details
-
DEFAULT_ALIAS_NAME
- See Also:
-
-
Method Details
-
initAccessCertificationCaseMapping
public static QAccessCertificationCaseMapping initAccessCertificationCaseMapping(@NotNull @NotNull SqaleRepoContext repositoryContext) -
getAccessCertificationCaseMapping
-
toSchemaObject
public AccessCertificationCaseType toSchemaObject(@NotNull @NotNull com.querydsl.core.Tuple row, @NotNull @NotNull QAccessCertificationCase entityPath, @NotNull @NotNull JdbcSession jdbcSession, Collection<SelectorOptions<GetOperationOptions>> options) throws SchemaException Description copied from class:SqaleTableMapping
Transforms row Tuple containingSqaleTableMapping
under 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. -
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. -
selectExpressions
@NotNull public @NotNull com.querydsl.core.types.Path<?>[] selectExpressions(QAccessCertificationCase entity, Collection<SelectorOptions<GetOperationOptions>> options) Description copied from class:QueryTableMapping
By default, usesQueryTableMapping.selectExpressionsWithCustomColumns(Q)
and does not use options. Can be overridden to fulfil other needs, e.g. to select just full object. -
newRowObject
-
newRowObject
Description copied from interface:QOwnedByMapping
Returns a row with foreign key fields referencing the provided owner row. -
insert
public MAccessCertificationCase insert(AccessCertificationCaseType acase, MAccessCertificationCampaign ownerRow, JdbcSession jdbcSession) throws SchemaException - Specified by:
insert
in interfaceQOwnedByMapping<AccessCertificationCaseType,
MAccessCertificationCase, MAccessCertificationCampaign> - Overrides:
insert
in classQContainerMapping<AccessCertificationCaseType,
QAccessCertificationCase, MAccessCertificationCase, MAccessCertificationCampaign> - Throws:
SchemaException
-
afterModify
public void afterModify(SqaleUpdateContext<AccessCertificationCaseType, QAccessCertificationCase, throws SchemaExceptionMAccessCertificationCase> updateContext) Description copied from interface:SqaleMappingMixin
Method called from `SqaleUpdateContext.finishExecutionOwn()` for containers. This can be handy when more than just column set is required, e.g. to refresh fullObject, etc.- Throws:
SchemaException
-
createRowTransformer
public ResultListRowTransformer<AccessCertificationCaseType,QAccessCertificationCase, createRowTransformerMAccessCertificationCase> (SqlQueryContext<AccessCertificationCaseType, QAccessCertificationCase, MAccessCertificationCase> sqlQueryContext, JdbcSession jdbcSession) Description copied from class:QueryTableMapping
Returns result transformer that by default callsQueryTableMapping.toSchemaObject(Tuple, FlexibleRelationalPathBase, JdbcSession, Collection)
for each result row. This can be overridden, seeResultListRowTransformer
javadoc for details. This is useful for stateful transformers where the whole result can be pre-/post-processed as well.
-