Class QProcessedObjectMapping
- 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<SimulationResultProcessedObjectType,QProcessedObject,MProcessedObject,MSimulationResult>
-
- com.evolveum.midpoint.repo.sqale.qmodel.simulation.QProcessedObjectMapping
-
- All Implemented Interfaces:
QOwnedByMapping<SimulationResultProcessedObjectType,MProcessedObject,MSimulationResult>
,SqaleMappingMixin<SimulationResultProcessedObjectType,QProcessedObject,MProcessedObject>
public class QProcessedObjectMapping extends QContainerMapping<SimulationResultProcessedObjectType,QProcessedObject,MProcessedObject,MSimulationResult>
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_ALIAS_NAME
static String
PARTITION_PREFIX
-
Fields inherited from class com.evolveum.midpoint.repo.sqlbase.mapping.QueryModelMapping
logger
-
-
Constructor Summary
Constructors Constructor Description QProcessedObjectMapping(@NotNull SqaleRepoContext repositoryContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PathSet
fullObjectItemsToSkip()
static QProcessedObjectMapping
getProcessedObjectMapping()
static @NotNull QProcessedObjectMapping
initProcessedResultMapping(@NotNull SqaleRepoContext repositoryContext)
MProcessedObject
insert(SimulationResultProcessedObjectType object, MSimulationResult ownerRow, JdbcSession jdbcSession)
protected QProcessedObject
newAliasInstance(String alias)
Method returning new instance ofEntityPath
- to be implemented by sub-mapping.MProcessedObject
newRowObject()
MProcessedObject
newRowObject(MSimulationResult ownerRow)
Returns a row with foreign key fields referencing the provided owner row.static String
partitionName(String oid)
SimulationResultProcessedObjectType
toSchemaObject(MProcessedObject 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, 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
-
PARTITION_PREFIX
public static final String PARTITION_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QProcessedObjectMapping
public QProcessedObjectMapping(@NotNull @NotNull SqaleRepoContext repositoryContext)
-
-
Method Detail
-
initProcessedResultMapping
@NotNull public static @NotNull QProcessedObjectMapping initProcessedResultMapping(@NotNull @NotNull SqaleRepoContext repositoryContext)
-
getProcessedObjectMapping
public static QProcessedObjectMapping getProcessedObjectMapping()
-
toSchemaObject
public SimulationResultProcessedObjectType toSchemaObject(MProcessedObject row) throws SchemaException
Description copied from class:QContainerMapping
Implemented for searchable containers that do not use fullObject for their recreation.- Overrides:
toSchemaObject
in classQContainerMapping<SimulationResultProcessedObjectType,QProcessedObject,MProcessedObject,MSimulationResult>
- Throws:
SchemaException
-
newRowObject
public MProcessedObject newRowObject()
- Overrides:
newRowObject
in classQueryTableMapping<SimulationResultProcessedObjectType,QProcessedObject,MProcessedObject>
-
newAliasInstance
protected QProcessedObject 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.
-
newRowObject
public MProcessedObject newRowObject(MSimulationResult ownerRow)
Description copied from interface:QOwnedByMapping
Returns a row with foreign key fields referencing the provided owner row.- Specified by:
newRowObject
in interfaceQOwnedByMapping<SimulationResultProcessedObjectType,MProcessedObject,MSimulationResult>
- Overrides:
newRowObject
in classQContainerMapping<SimulationResultProcessedObjectType,QProcessedObject,MProcessedObject,MSimulationResult>
-
fullObjectItemsToSkip
protected PathSet fullObjectItemsToSkip()
- Overrides:
fullObjectItemsToSkip
in classSqaleTableMapping<SimulationResultProcessedObjectType,QProcessedObject,MProcessedObject>
-
insert
public MProcessedObject insert(SimulationResultProcessedObjectType object, MSimulationResult ownerRow, JdbcSession jdbcSession) throws SchemaException
- Specified by:
insert
in interfaceQOwnedByMapping<SimulationResultProcessedObjectType,MProcessedObject,MSimulationResult>
- Overrides:
insert
in classQContainerMapping<SimulationResultProcessedObjectType,QProcessedObject,MProcessedObject,MSimulationResult>
- Throws:
SchemaException
-
-