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<S,Q,R,OR>
com.evolveum.midpoint.repo.sqale.qmodel.common.QContainerWithFullObjectMapping<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> QSeparatelySerializedItem<QFocusIdentity<OR>,
MFocusIdentity>
public class QFocusIdentityMapping<OR extends MFocus>
extends QContainerWithFullObjectMapping<FocusIdentityType,QFocusIdentity<OR>,MFocusIdentity,OR>
Mapping between
QFocusIdentity
and FocusIdentityType
.-
Field Summary
Fields inherited from class com.evolveum.midpoint.repo.sqlbase.mapping.QueryModelMapping
logger
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterModify
(SqaleUpdateContext<FocusIdentityType, QFocusIdentity<OR>, MFocusIdentity> updateContext) Method called from `SqaleUpdateContext.finishExecutionOwn()` for containers.protected CheckedFunction<SchemaRegistryState,
ItemDefinition<?>, SystemException> protected SchemaRegistryState.DerivationKey<ItemDefinition<?>>
static <OR extends MFocus>
QFocusIdentityMapping<OR>get()
static <OR extends MFocus>
QFocusIdentityMapping<OR>init
(@NotNull SqaleRepoContext repositoryContext) insert
(FocusIdentityType schemaObject, OR ownerRow, JdbcSession jdbcSession) protected QFocusIdentity<OR>
newAliasInstance
(String alias) Method returning new instance ofEntityPath
- to be implemented by sub-mapping.newRowObject
(OR ownerRow) Returns a row with foreign key fields referencing the provided owner row.com.querydsl.core.types.OrderSpecifier<?>
orderSpecifier
(QFocusIdentity<OR> orqFocusIdentity) Methods inherited from class com.evolveum.midpoint.repo.sqale.qmodel.common.QContainerWithFullObjectMapping
allOwnedBy, createAlias, fullObjectExpressions, getOwner, getPrismItemType, hasFullObject, initRowObjectWithFullObject, toSchemaObject, toSchemaObjectEmbedded, useDeltaApplyResults
Methods inherited from class com.evolveum.midpoint.repo.sqale.qmodel.common.QContainerMapping
attachContainerIdPath, attachOwnerOid, containerDepth, containerIdentityPredicate, containerIdPath, initContainerMapping, initRowObject, selectExpressions, toSchemaObject
Methods inherited from class com.evolveum.midpoint.repo.sqale.mapping.SqaleTableMapping
addExtensionMapping, binaryMapper, booleanMapper, createFullObject, createRowTransformer, doubleMapper, enumMapper, fullObjectItemsToSkip, getDefinition, getPartitionManager, insert, integerMapper, multiPolyStringMapper, multiStringMapper, multiUriMapper, multiValueMapper, needsInitialization, objectReference, objectReference, objectTypeToQName, parseSchemaObject, parseSchemaObject, polyStringMapper, preprocessCacheableUris, 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, appendPaths, defaultAlias, defaultAliasName, detailFetchMappers, getExtensionColumns, joinOn, longMapper, newAlias, paths, 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.qmodel.object.QSeparatelySerializedItem
tableName
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:
-
PATH
-
-
Method Details
-
init
public static <OR extends MFocus> QFocusIdentityMapping<OR> init(@NotNull @NotNull SqaleRepoContext repositoryContext) -
get
-
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.- Overrides:
newAliasInstance
in classQContainerMapping<FocusIdentityType,
QFocusIdentity<OR extends MFocus>, MFocusIdentity, OR extends MFocus>
-
newRowObject
- Overrides:
newRowObject
in classQueryTableMapping<FocusIdentityType,
QFocusIdentity<OR extends MFocus>, MFocusIdentity>
-
newRowObject
Description copied from interface:QOwnedByMapping
Returns a row with foreign key fields referencing the provided owner row.- Specified by:
newRowObject
in interfaceQOwnedByMapping<FocusIdentityType,
MFocusIdentity, OR extends MFocus> - Overrides:
newRowObject
in classQContainerMapping<FocusIdentityType,
QFocusIdentity<OR extends MFocus>, MFocusIdentity, OR extends MFocus>
-
insert
public MFocusIdentity insert(FocusIdentityType schemaObject, OR ownerRow, JdbcSession jdbcSession) throws SchemaException - Specified by:
insert
in interfaceQOwnedByMapping<FocusIdentityType,
MFocusIdentity, OR extends MFocus> - Overrides:
insert
in classQContainerMapping<FocusIdentityType,
QFocusIdentity<OR extends MFocus>, MFocusIdentity, OR extends MFocus> - Throws:
SchemaException
-
getItemPath
- Specified by:
getItemPath
in interfaceQSeparatelySerializedItem<QFocusIdentity<OR extends MFocus>,
MFocusIdentity> - Specified by:
getItemPath
in classQContainerWithFullObjectMapping<FocusIdentityType,
QFocusIdentity<OR extends MFocus>, MFocusIdentity, OR extends MFocus>
-
toSchemaObjectLegacy
- Specified by:
toSchemaObjectLegacy
in classQContainerWithFullObjectMapping<FocusIdentityType,
QFocusIdentity<OR extends MFocus>, MFocusIdentity, OR extends MFocus> - Throws:
SchemaException
-
afterModify
public void afterModify(SqaleUpdateContext<FocusIdentityType, QFocusIdentity<OR>, throws SchemaExceptionMFocusIdentity> 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.- Specified by:
afterModify
in interfaceSqaleMappingMixin<FocusIdentityType,
QFocusIdentity<OR extends MFocus>, MFocusIdentity> - Overrides:
afterModify
in classQContainerWithFullObjectMapping<FocusIdentityType,
QFocusIdentity<OR extends MFocus>, MFocusIdentity, OR extends MFocus> - Throws:
SchemaException
-
orderSpecifier
public com.querydsl.core.types.OrderSpecifier<?> orderSpecifier(QFocusIdentity<OR> orqFocusIdentity) -
definitionDerivationKey
- Specified by:
definitionDerivationKey
in classQContainerWithFullObjectMapping<FocusIdentityType,
QFocusIdentity<OR extends MFocus>, MFocusIdentity, OR extends MFocus>
-
definitionDerivation
protected CheckedFunction<SchemaRegistryState,ItemDefinition<?>, definitionDerivation()SystemException> - Specified by:
definitionDerivation
in classQContainerWithFullObjectMapping<FocusIdentityType,
QFocusIdentity<OR extends MFocus>, MFocusIdentity, OR extends MFocus>
-