Class QAssignmentHolderMapping<S extends AssignmentHolderType,Q extends QAssignmentHolder<R>,R 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.object.QObjectMapping<S,Q,R>
-
- com.evolveum.midpoint.repo.sqale.qmodel.object.QAssignmentHolderMapping<S,Q,R>
-
- Type Parameters:
S
- schema type for the assignment holder objectQ
- type of entity pathR
- row type related to theQAssignmentHolderMapping
- All Implemented Interfaces:
SqaleMappingMixin<S,Q,R>
- Direct Known Subclasses:
QAccessCertificationCampaignMapping
,QAccessCertificationDefinitionMapping
,QCaseMapping
,QConnectorHostMapping
,QConnectorMapping
,QDashboardMapping
,QFocusMapping
,QFormMapping
,QFunctionLibraryMapping
,QLookupTableMapping
,QMarkMapping
,QMessageTemplateMapping
,QNodeMapping
,QObjectCollectionMapping
,QObjectTemplateMapping
,QReportDataMapping
,QReportMapping
,QResourceMapping
,QSecurityPolicyMapping
,QSequenceMapping
,QSimulationResultMapping
,QSystemConfigurationMapping
,QTaskMapping
,QValuePolicyMapping
public class QAssignmentHolderMapping<S extends AssignmentHolderType,Q extends QAssignmentHolder<R>,R extends MObject> extends QObjectMapping<S,Q,R>
Mapping betweenQAssignmentHolder
andAssignmentHolderType
.
-
-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
QAssignmentHolderMapping(@NotNull String tableName, @NotNull String defaultAliasName, @NotNull Class<S> schemaType, @NotNull Class<Q> queryType, @NotNull SqaleRepoContext repositoryContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QAssignmentHolderMapping<?,?,?>
getAssignmentHolderMapping()
static QAssignmentHolderMapping<?,?,?>
initAssignmentHolderMapping(@NotNull SqaleRepoContext repositoryContext)
protected Q
newAliasInstance(String alias)
Method returning new instance ofEntityPath
- to be implemented by sub-mapping.void
storeRelatedEntities(R row, S schemaObject, @NotNull JdbcSession jdbcSession)
Stores other entities related to the main object row like containers, references, etc.-
Methods inherited from class com.evolveum.midpoint.repo.sqale.qmodel.object.QObjectMapping
getObjectMapping, initObjectMapping, newRowObject, selectExpressions, setFullObject, toRowObjectWithoutFullObject, toSchemaObject, toSchemaObjectCompleteSafe
-
Methods inherited from class com.evolveum.midpoint.repo.sqale.mapping.SqaleTableMapping
addExtensionMapping, binaryMapper, booleanMapper, createFullObject, createRowTransformer, 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, 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, afterModify, queryType
-
-
-
-
Field Detail
-
DEFAULT_ALIAS_NAME
public static final String DEFAULT_ALIAS_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
initAssignmentHolderMapping
public static QAssignmentHolderMapping<?,?,?> initAssignmentHolderMapping(@NotNull @NotNull SqaleRepoContext repositoryContext)
-
getAssignmentHolderMapping
public static QAssignmentHolderMapping<?,?,?> getAssignmentHolderMapping()
-
newAliasInstance
protected Q 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 classQObjectMapping<S extends AssignmentHolderType,Q extends QAssignmentHolder<R>,R extends MObject>
-
storeRelatedEntities
public void storeRelatedEntities(@NotNull R row, @NotNull S schemaObject, @NotNull @NotNull JdbcSession jdbcSession) throws SchemaException
Description copied from class:QObjectMapping
Stores other entities related to the main object row like containers, references, etc. This is not part ofQObjectMapping.toRowObjectWithoutFullObject(S, com.evolveum.midpoint.repo.sqlbase.JdbcSession)
because it requires known OID which is not assured before calling that method. *Always call this super method first in overriding methods.*- Overrides:
storeRelatedEntities
in classQObjectMapping<S extends AssignmentHolderType,Q extends QAssignmentHolder<R>,R extends MObject>
- Parameters:
row
- master row for the added object("aggregate root")schemaObject
- schema objects for which the details are storedjdbcSession
- JDBC session used to insert related rows- Throws:
SchemaException
-
-