Class RelationModel
java.lang.Object
de.mid.innovator.m2msdk.model.transformation.glue.RelationModel
The relation model contains all glues.
- Version:
- 10.1.1
- Author:
- jmback
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(MappingElementIF parent, MappingElementIF child) booleanexistsMappedElements(Identifier productionIdentifier, MappingElementIF masterElement) getChildren(MappingElementIF parent) getGlueContentsById(long Id) getGluePart(Identifier productionIdentifier, MappingElementIF masterElement) getGlueSnapshotItem(Identifier stepIdentifier, MappingElementIF masterElement) getRawGluePart(Identifier productionIdentifier, MappingElementIF masterElement) getSourceElementList(SessionInterface session, TransformationEnvironmentIF transformationEnvironmentIF, StepReferenceParameterStructure pcStepReference, GlueSourceInfoMode sourceMode) Retrieves from Relation Model the source elements for a step and glue sourceInfoMode element.getSourceElements(MappingElementIF element, Identifier stepIdentifier) Retrieves from Relation Model the source elements for a given target element.getTargetElement(Identifier productionIdentifier, MappingElementIF masterElement) getTargetElements(TransformationEnvironmentIF transformationEnvironmentIF, Identifier stepIdentifier, MappingElementIF masterElement) booleanisGlueSourceInfoMode(TransformationEnvironmentIF transformationEnvironmentIF, MappingElementIF element, String stepIdentifier, GlueSourceInfoMode mode) Checks the source elements' state from Relation Model.booleanisGlueTargetInfoMode(TransformationEnvironmentIF transformationEnvironmentIF, MappingElementIF element, String stepIdentifier, GlueTargetInfoMode mode) Checks the target elements' state from Relation Model.voidput(IdentifierAble stepIdentifier, GluePart gluePart) voidput(Identifier stepIdentifier, GluePart gluePart) voidreset()Reset the relation modelvoidsetRelationExtraModelInformation(String key, Object info)
-
Constructor Details
-
RelationModel
public RelationModel()
-
-
Method Details
-
getGlueSnapshotItem
public GlueSnapshotItem getGlueSnapshotItem(Identifier stepIdentifier, MappingElementIF masterElement) -
getGluePart
-
getRawGluePart
-
getTargetElement
public MappingElementIF getTargetElement(Identifier productionIdentifier, MappingElementIF masterElement) -
getTargetElements
public MappingElementList getTargetElements(TransformationEnvironmentIF transformationEnvironmentIF, Identifier stepIdentifier, MappingElementIF masterElement) throws RemoteException, M2MException - Throws:
RemoteExceptionM2MException
-
existsMappedElements
public boolean existsMappedElements(Identifier productionIdentifier, MappingElementIF masterElement) -
put
-
put
-
getGlueIds
-
getGlueContentsById
-
getSourceElementList
public MappingElementList getSourceElementList(SessionInterface session, TransformationEnvironmentIF transformationEnvironmentIF, StepReferenceParameterStructure pcStepReference, GlueSourceInfoMode sourceMode) throws RemoteException, M2MException Retrieves from Relation Model the source elements for a step and glue sourceInfoMode element.- Parameters:
session-transformationEnvironmentIF- TransformationEnvironmentpcStepReference- step identifersourceMode- source glue mode- Returns:
- the found elements list of source elements
- Throws:
M2MExceptionRemoteException
-
getSourceElements
Retrieves from Relation Model the source elements for a given target element.- Parameters:
element- target elementstepIdentifier- step mapping source to target- Returns:
- list of mapping elements in source model mapped by this step to the target
-
isGlueTargetInfoMode
public boolean isGlueTargetInfoMode(TransformationEnvironmentIF transformationEnvironmentIF, MappingElementIF element, String stepIdentifier, GlueTargetInfoMode mode) throws RemoteException, M2MException Checks the target elements' state from Relation Model.- Parameters:
transformationEnvironmentIF-element- target elementstepIdentifier- step creating the gluemode- state in which the glue of this target is- Returns:
- true, if the source element has the questioned mode
- Throws:
M2MExceptionRemoteException
-
isGlueSourceInfoMode
public boolean isGlueSourceInfoMode(TransformationEnvironmentIF transformationEnvironmentIF, MappingElementIF element, String stepIdentifier, GlueSourceInfoMode mode) throws RemoteException, M2MException Checks the source elements' state from Relation Model.- Parameters:
transformationEnvironmentIF- .getTransformation()element- source elementstepIdentifier- step creating the gluemode- state in which the glue of this source is- Returns:
- true, if the source element has the questioned mode
- Throws:
M2MExceptionRemoteException
-
getRelationExtraModelInformation
-
setRelationExtraModelInformation
-
getChildren
-
addChild
-
reset
public void reset()Reset the relation model
-