Class QConnectorMapping
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<ConnectorType,QConnector,MConnector>
com.evolveum.midpoint.repo.sqale.qmodel.connector.QConnectorMapping
- All Implemented Interfaces:
SqaleMappingMixin<ConnectorType,
QConnector, MConnector>
public class QConnectorMapping
extends QAssignmentHolderMapping<ConnectorType,QConnector,MConnector>
Mapping between
QConnector
and ConnectorType
.-
Field Summary
Fields inherited from class com.evolveum.midpoint.repo.sqlbase.mapping.QueryModelMapping
logger
-
Method Summary
Modifier and TypeMethodDescriptionstatic QConnectorMapping
get()
static QConnectorMapping
init
(@NotNull SqaleRepoContext repositoryContext) protected QConnector
newAliasInstance
(String alias) Method returning new instance ofEntityPath
- to be implemented by sub-mapping.@NotNull MConnector
toRowObjectWithoutFullObject
(ConnectorType schemaObject, JdbcSession jdbcSession) Override this to fill additional row attributes after calling this super version.Methods inherited from class com.evolveum.midpoint.repo.sqale.qmodel.object.QAssignmentHolderMapping
getAssignmentHolderMapping, initAssignmentHolderMapping, storeRelatedEntities
Methods inherited from class com.evolveum.midpoint.repo.sqale.qmodel.object.QObjectMapping
addContainerTableMapping, addFullObjectContainerTableMapping, additionalSelectsByDefault, addRefMapping, createRowTransformer, customizeFullObjectItemsToSkip, definitionDerivation, definitionDerivationKey, fullObjectItemsToSkip, getObjectMapping, initObjectMapping, isExcludeAll, isReindexSupported, selectExpressions, setFullObject, setStoreSplitted, toSchemaObject, toSchemaObjectCompleteSafe
Methods inherited from class com.evolveum.midpoint.repo.sqale.mapping.SqaleTableMapping
addExtensionMapping, binaryMapper, booleanMapper, createFullObject, doubleMapper, enumMapper, getDefinition, getPartitionManager, 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, 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.mapping.SqaleMappingMixin
addAuditRefMapping, addExtensionMapping, addItemMapping, addNestedMapping, addRefMapping, addRelationResolver, afterModify, queryType
-
Field Details
-
DEFAULT_ALIAS_NAME
- See Also:
-
-
Method Details
-
init
-
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 classQAssignmentHolderMapping<ConnectorType,
QConnector, MConnector>
-
newRowObject
- Overrides:
newRowObject
in classQObjectMapping<ConnectorType,
QConnector, MConnector>
-
toRowObjectWithoutFullObject
@NotNull public @NotNull MConnector toRowObjectWithoutFullObject(ConnectorType schemaObject, JdbcSession jdbcSession) Description copied from class:QObjectMapping
Override this to fill additional row attributes after calling this super version. *This must be called with active JDBC session* so it can create newQUri
rows. As this is intended for inserts *DO NOT* setMObject.objectType
to any value, it must be NULL otherwise the DB will complain about the value for the generated column. OID may be null, hence the method does NOT create any sub-entities, seeQObjectMapping.storeRelatedEntities(MObject, ObjectType, JdbcSession)
. Try to keep order of fields here, in M-class (MObject for this one) and in SQL the same.- Overrides:
toRowObjectWithoutFullObject
in classQObjectMapping<ConnectorType,
QConnector, MConnector>
-