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 betweenQAccessCertificationCase
andAccessCertificationCaseType
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_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, 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 Detail
-
DEFAULT_ALIAS_NAME
public static final String DEFAULT_ALIAS_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
initAccessCertificationCaseMapping
public static QAccessCertificationCaseMapping initAccessCertificationCaseMapping(@NotNull @NotNull SqaleRepoContext repositoryContext)
-
getAccessCertificationCaseMapping
public static QAccessCertificationCaseMapping 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.- Overrides:
toSchemaObject
in classSqaleTableMapping<AccessCertificationCaseType,QAccessCertificationCase,MAccessCertificationCase>
- Throws:
SchemaException
-
newAliasInstance
protected QAccessCertificationCase newAliasInstance(String alias)
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
public MAccessCertificationCase newRowObject()
- Overrides:
newRowObject
in classQueryTableMapping<AccessCertificationCaseType,QAccessCertificationCase,MAccessCertificationCase>
-
newRowObject
public MAccessCertificationCase newRowObject(MAccessCertificationCampaign ownerRow)
Description copied from interface:QOwnedByMapping
Returns a row with foreign key fields referencing the provided owner row.- Specified by:
newRowObject
in interfaceQOwnedByMapping<AccessCertificationCaseType,MAccessCertificationCase,MAccessCertificationCampaign>
- Overrides:
newRowObject
in classQContainerMapping<AccessCertificationCaseType,QAccessCertificationCase,MAccessCertificationCase,MAccessCertificationCampaign>
-
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,MAccessCertificationCase> updateContext) throws SchemaException
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,MAccessCertificationCase> createRowTransformer(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.
-
-