Class QFocusIdentityMapping<OR extends MFocus>
- 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<FocusIdentityType,QFocusIdentity<OR>,MFocusIdentity,OR>
-
- com.evolveum.midpoint.repo.sqale.qmodel.focus.QFocusIdentityMapping<OR>
-
- Type Parameters:
OR- type of the owner row
- All Implemented Interfaces:
QOwnedByMapping<FocusIdentityType,MFocusIdentity,OR>,SqaleMappingMixin<FocusIdentityType,QFocusIdentity<OR>,MFocusIdentity>
public class QFocusIdentityMapping<OR extends MFocus> extends QContainerMapping<FocusIdentityType,QFocusIdentity<OR>,MFocusIdentity,OR>
Mapping betweenQFocusIdentityandFocusIdentityType.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_ALIAS_NAME-
Fields inherited from class com.evolveum.midpoint.repo.sqlbase.mapping.QueryModelMapping
logger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterModify(SqaleUpdateContext<FocusIdentityType,QFocusIdentity<OR>,MFocusIdentity> updateContext)Method called from `SqaleUpdateContext.finishExecutionOwn()` for containers.static <OR extends MFocus>
QFocusIdentityMapping<OR>get()static <OR extends MFocus>
QFocusIdentityMapping<OR>init(@NotNull SqaleRepoContext repositoryContext)MFocusIdentityinsert(FocusIdentityType schemaObject, OR ownerRow, JdbcSession jdbcSession)protected QFocusIdentity<OR>newAliasInstance(String alias)Method returning new instance ofEntityPath- to be implemented by sub-mapping.MFocusIdentitynewRowObject()MFocusIdentitynewRowObject(OR ownerRow)Returns a row with foreign key fields referencing the provided owner row.FocusIdentityTypetoSchemaObject(MFocusIdentity row)Implemented for searchable containers that do not use fullObject for their recreation.-
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, 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, 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, queryType
-
-
-
-
Field Detail
-
DEFAULT_ALIAS_NAME
public static final String DEFAULT_ALIAS_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public static <OR extends MFocus> QFocusIdentityMapping<OR> init(@NotNull @NotNull SqaleRepoContext repositoryContext)
-
get
public static <OR extends MFocus> QFocusIdentityMapping<OR> get()
-
newAliasInstance
protected QFocusIdentity<OR> newAliasInstance(String alias)
Description copied from class:QueryTableMappingMethod 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:
newAliasInstancein classQContainerMapping<FocusIdentityType,QFocusIdentity<OR extends MFocus>,MFocusIdentity,OR extends MFocus>
-
newRowObject
public MFocusIdentity newRowObject()
- Overrides:
newRowObjectin classQueryTableMapping<FocusIdentityType,QFocusIdentity<OR extends MFocus>,MFocusIdentity>
-
newRowObject
public MFocusIdentity newRowObject(OR ownerRow)
Description copied from interface:QOwnedByMappingReturns a row with foreign key fields referencing the provided owner row.- Specified by:
newRowObjectin interfaceQOwnedByMapping<FocusIdentityType,MFocusIdentity,OR extends MFocus>- Overrides:
newRowObjectin classQContainerMapping<FocusIdentityType,QFocusIdentity<OR extends MFocus>,MFocusIdentity,OR extends MFocus>
-
insert
public MFocusIdentity insert(FocusIdentityType schemaObject, OR ownerRow, JdbcSession jdbcSession) throws SchemaException
- Specified by:
insertin interfaceQOwnedByMapping<FocusIdentityType,MFocusIdentity,OR extends MFocus>- Overrides:
insertin classQContainerMapping<FocusIdentityType,QFocusIdentity<OR extends MFocus>,MFocusIdentity,OR extends MFocus>- Throws:
SchemaException
-
toSchemaObject
public FocusIdentityType toSchemaObject(MFocusIdentity row) throws SchemaException
Description copied from class:QContainerMappingImplemented for searchable containers that do not use fullObject for their recreation.- Overrides:
toSchemaObjectin classQContainerMapping<FocusIdentityType,QFocusIdentity<OR extends MFocus>,MFocusIdentity,OR extends MFocus>- Throws:
SchemaException
-
afterModify
public void afterModify(SqaleUpdateContext<FocusIdentityType,QFocusIdentity<OR>,MFocusIdentity> updateContext) throws SchemaException
Description copied from interface:SqaleMappingMixinMethod 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
-
-