Class QCaseWorkItemMapping
- 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<CaseWorkItemType,QCaseWorkItem,MCaseWorkItem,MCase>
-
- com.evolveum.midpoint.repo.sqale.qmodel.cases.workitem.QCaseWorkItemMapping
-
- All Implemented Interfaces:
QOwnedByMapping<CaseWorkItemType,MCaseWorkItem,MCase>
,SqaleMappingMixin<CaseWorkItemType,QCaseWorkItem,MCaseWorkItem>
public class QCaseWorkItemMapping extends QContainerMapping<CaseWorkItemType,QCaseWorkItem,MCaseWorkItem,MCase>
Mapping betweenQCaseWorkItem
andCaseWorkItemType
.
-
-
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
-
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, 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, 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
-
-
-
-
Field Detail
-
DEFAULT_ALIAS_NAME
public static final String DEFAULT_ALIAS_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
initCaseWorkItemMapping
public static QCaseWorkItemMapping initCaseWorkItemMapping(@NotNull @NotNull SqaleRepoContext repositoryContext)
-
getCaseWorkItemMapping
public static QCaseWorkItemMapping getCaseWorkItemMapping()
-
toSchemaObject
public CaseWorkItemType toSchemaObject(MCaseWorkItem row)
Description copied from class:QContainerMapping
Implemented for searchable containers that do not use fullObject for their recreation.- Overrides:
toSchemaObject
in classQContainerMapping<CaseWorkItemType,QCaseWorkItem,MCaseWorkItem,MCase>
-
createRowTransformer
public ResultListRowTransformer<CaseWorkItemType,QCaseWorkItem,MCaseWorkItem> createRowTransformer(SqlQueryContext<CaseWorkItemType,QCaseWorkItem,MCaseWorkItem> 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.- Overrides:
createRowTransformer
in classSqaleTableMapping<CaseWorkItemType,QCaseWorkItem,MCaseWorkItem>
-
newAliasInstance
protected QCaseWorkItem 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.- Overrides:
newAliasInstance
in classQContainerMapping<CaseWorkItemType,QCaseWorkItem,MCaseWorkItem,MCase>
-
newRowObject
public MCaseWorkItem newRowObject()
- Overrides:
newRowObject
in classQueryTableMapping<CaseWorkItemType,QCaseWorkItem,MCaseWorkItem>
-
newRowObject
public MCaseWorkItem newRowObject(MCase ownerRow)
Description copied from interface:QOwnedByMapping
Returns a row with foreign key fields referencing the provided owner row.- Specified by:
newRowObject
in interfaceQOwnedByMapping<CaseWorkItemType,MCaseWorkItem,MCase>
- Overrides:
newRowObject
in classQContainerMapping<CaseWorkItemType,QCaseWorkItem,MCaseWorkItem,MCase>
-
insert
public MCaseWorkItem insert(CaseWorkItemType workItem, MCase ownerRow, JdbcSession jdbcSession)
- Specified by:
insert
in interfaceQOwnedByMapping<CaseWorkItemType,MCaseWorkItem,MCase>
- Overrides:
insert
in classQContainerMapping<CaseWorkItemType,QCaseWorkItem,MCaseWorkItem,MCase>
-
-