Class EntityMappingDefinition
java.lang.Object
com.aquima.interactions.mapping.impl.EntityMappingDefinition
- All Implemented Interfaces:
IEntityMappingDefinition
,Serializable
Contains the definitions of a mapping on the Entity level.
- Since:
- 7.1
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEntityMappingDefinition
(IEntityMappingDS datasource, IMetaModel sourceMetamodel, IMetaModel targetMetamodel, IExpressionParser sourceExpressionParser, IExpressionParser targetExpressionParser) Constructs an entity mapping definition from a data source. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
The method returns the mapping action when a matching source and target instances is found.The method returns the mapping action when no matching source instance is found.The method returns the mapping action when no matching target instance is found.This method returns all the attribute mappings for this entity mapping.This method returns the optional condition when this mapping should be used.This method returns the optional match condition that determines when instances match and should be mapped.This method returns the optional source expressions that can be used to activate instance(s) during value mapping evaluation.This method returns the source expression that results in instances in the source profile.This method returns the entity name of the target.toString()
-
Constructor Details
-
EntityMappingDefinition
public EntityMappingDefinition(IEntityMappingDS datasource, IMetaModel sourceMetamodel, IMetaModel targetMetamodel, IExpressionParser sourceExpressionParser, IExpressionParser targetExpressionParser) Constructs an entity mapping definition from a data source. This method requires the (partially) initialized source and target metamodel.- Parameters:
datasource
- The data source providing the information of the attribute mapping.sourceMetamodel
- The source meta model.targetMetamodel
- The target meta model.sourceExpressionParser
- The expression parser that is used to parse source expressions.targetExpressionParser
- The expression parser that is used to parse target expressions.- Throws:
InitializationException
- This error is thrown when structural errors are encountered during initialization.
-
-
Method Details
-
getTargetEntityName
Description copied from interface:IEntityMappingDefinition
This method returns the entity name of the target.- Specified by:
getTargetEntityName
in interfaceIEntityMappingDefinition
- Returns:
- The entity name of the target, never null.
-
addAttributeMapping
-
toString
-
getActionForMatch
Description copied from interface:IEntityMappingDefinition
The method returns the mapping action when a matching source and target instances is found.- Specified by:
getActionForMatch
in interfaceIEntityMappingDefinition
- Returns:
- The mapping action, never null.
-
getActionForNoMatchingSource
Description copied from interface:IEntityMappingDefinition
The method returns the mapping action when no matching source instance is found.- Specified by:
getActionForNoMatchingSource
in interfaceIEntityMappingDefinition
- Returns:
- The mapping action, never null.
-
getActionForNoMatchingTarget
Description copied from interface:IEntityMappingDefinition
The method returns the mapping action when no matching target instance is found.- Specified by:
getActionForNoMatchingTarget
in interfaceIEntityMappingDefinition
- Returns:
- The mapping action, never null.
-
getCondition
Description copied from interface:IEntityMappingDefinition
This method returns the optional condition when this mapping should be used.- Specified by:
getCondition
in interfaceIEntityMappingDefinition
- Returns:
- The condition, may be null.
-
getAttributeMappings
Description copied from interface:IEntityMappingDefinition
This method returns all the attribute mappings for this entity mapping.- Specified by:
getAttributeMappings
in interfaceIEntityMappingDefinition
- Returns:
- The attribute mappings, never null, but can be empty array.
-
getMatchConditions
Description copied from interface:IEntityMappingDefinition
This method returns the optional match condition that determines when instances match and should be mapped.
When no match condition is available, an empty array is returned.
- Specified by:
getMatchConditions
in interfaceIEntityMappingDefinition
- Returns:
- The match conditions, never null, but can be an empty array.
-
getSourceEntityExpression
Description copied from interface:IEntityMappingDefinition
This method returns the source expression that results in instances in the source profile.- Specified by:
getSourceEntityExpression
in interfaceIEntityMappingDefinition
- Returns:
- The source entity expression, never null
-
getSourceContextExpressions
Description copied from interface:IEntityMappingDefinition
This method returns the optional source expressions that can be used to activate instance(s) during value mapping evaluation.- Specified by:
getSourceContextExpressions
in interfaceIEntityMappingDefinition
- Returns:
- The source expression, never null, but can be an empty array.
-