Class QLookupTableRowMapping
- 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<LookupTableRowType,QLookupTableRow,MLookupTableRow,MLookupTable>
-
- com.evolveum.midpoint.repo.sqale.qmodel.lookuptable.QLookupTableRowMapping
-
- All Implemented Interfaces:
QOwnedByMapping<LookupTableRowType,MLookupTableRow,MLookupTable>,SqaleMappingMixin<LookupTableRowType,QLookupTableRow,MLookupTableRow>
public class QLookupTableRowMapping extends QContainerMapping<LookupTableRowType,QLookupTableRow,MLookupTableRow,MLookupTable>
Mapping betweenQLookupTableRowandLookupTableRowType.
-
-
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 com.querydsl.core.types.PredicatecontainerIdentityPredicate(QLookupTableRow entityPath, LookupTableRowType container)static QLookupTableRowMappingget()static QLookupTableRowMappinginit(@NotNull SqaleRepoContext repositoryContext)protected voidinsert(MLookupTableRow row, JdbcSession jdbcSession)Convenient insert shortcut when the row is fully populated.MLookupTableRowinsert(LookupTableRowType lookupTableRow, MLookupTable ownerRow, JdbcSession jdbcSession)protected QLookupTableRownewAliasInstance(String alias)Method returning new instance ofEntityPath- to be implemented by sub-mapping.MLookupTableRownewRowObject()MLookupTableRownewRowObject(MLookupTable ownerRow)Returns a row with foreign key fields referencing the provided owner row.-
Methods inherited from class com.evolveum.midpoint.repo.sqale.qmodel.common.QContainerMapping
initContainerMapping, initRowObject, toSchemaObject
-
Methods inherited from class com.evolveum.midpoint.repo.sqale.mapping.SqaleTableMapping
addExtensionMapping, binaryMapper, booleanMapper, createFullObject, createRowTransformer, enumMapper, fullObjectItemsToSkip, 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
-
init
public static QLookupTableRowMapping init(@NotNull @NotNull SqaleRepoContext repositoryContext)
-
get
public static QLookupTableRowMapping get()
-
newAliasInstance
protected QLookupTableRow 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<LookupTableRowType,QLookupTableRow,MLookupTableRow,MLookupTable>
-
newRowObject
public MLookupTableRow newRowObject()
- Overrides:
newRowObjectin classQueryTableMapping<LookupTableRowType,QLookupTableRow,MLookupTableRow>
-
newRowObject
public MLookupTableRow newRowObject(MLookupTable ownerRow)
Description copied from interface:QOwnedByMappingReturns a row with foreign key fields referencing the provided owner row.- Specified by:
newRowObjectin interfaceQOwnedByMapping<LookupTableRowType,MLookupTableRow,MLookupTable>- Overrides:
newRowObjectin classQContainerMapping<LookupTableRowType,QLookupTableRow,MLookupTableRow,MLookupTable>
-
insert
protected void insert(MLookupTableRow row, JdbcSession jdbcSession)
Description copied from class:SqaleTableMappingConvenient insert shortcut when the row is fully populated.- Overrides:
insertin classSqaleTableMapping<LookupTableRowType,QLookupTableRow,MLookupTableRow>
-
insert
public MLookupTableRow insert(LookupTableRowType lookupTableRow, MLookupTable ownerRow, JdbcSession jdbcSession)
- Specified by:
insertin interfaceQOwnedByMapping<LookupTableRowType,MLookupTableRow,MLookupTable>- Overrides:
insertin classQContainerMapping<LookupTableRowType,QLookupTableRow,MLookupTableRow,MLookupTable>
-
containerIdentityPredicate
public com.querydsl.core.types.Predicate containerIdentityPredicate(QLookupTableRow entityPath, LookupTableRowType container)
- Overrides:
containerIdentityPredicatein classQContainerMapping<LookupTableRowType,QLookupTableRow,MLookupTableRow,MLookupTable>
-
-