public abstract class AbstractAssociationGenerator extends java.lang.Object implements AssociationGenerator
| Constructor and Description |
|---|
AbstractAssociationGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected TypeAttributeDescriptor |
asDescriptor(IntegrationObjectItemAttributeModel attributeDefinitionModel)
Converts attribute model to an attribute descriptor.
|
protected void |
checkIsApplicablePrecondition(IntegrationObjectItemAttributeModel attributeDefinitionModel)
Runs safety checks on the specified attribute definition model, to make sure it can be analyzed by the
AssociationGenerator.isApplicable(IntegrationObjectItemAttributeModel) method. |
java.lang.String |
getAssociationName(IntegrationObjectItemAttributeModel attributeDefinitionModel)
Derives the association name from the given attribute definition model
|
protected java.lang.String |
getAssociationName(TypeAttributeDescriptor descriptor)
Generates association name based on the the provided attribute descriptor.
|
protected EdmMultiplicity |
getSourceCardinality(TypeAttributeDescriptor descriptor)
Determines cardinality of the source type presented in the specified attribute descriptor.
|
java.lang.String |
getSourceRole(IntegrationObjectItemAttributeModel attributeDefinitionModel)
Derives the source role from the given attribute definition model
|
protected java.lang.String |
getSourceRole(TypeAttributeDescriptor descriptor)
Generates an association source role.
|
protected EdmMultiplicity |
getTargetCardinality(TypeAttributeDescriptor descriptor)
Determines cardinality of the target type presented in the specified attribute descriptor.
|
java.lang.String |
getTargetRole(IntegrationObjectItemAttributeModel attributeDefinitionModel)
Derives the target role from the given attribute definition model
|
protected java.lang.String |
getTargetRole(TypeAttributeDescriptor descriptor)
Generates an association target role.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisApplicablegeneratepublic java.lang.String getSourceRole(IntegrationObjectItemAttributeModel attributeDefinitionModel)
AssociationGeneratorgetSourceRole in interface AssociationGeneratorattributeDefinitionModel - the integration object attribute definition modelpublic java.lang.String getTargetRole(IntegrationObjectItemAttributeModel attributeDefinitionModel)
AssociationGeneratorgetTargetRole in interface AssociationGeneratorattributeDefinitionModel - the integration object attribute definition modelpublic java.lang.String getAssociationName(IntegrationObjectItemAttributeModel attributeDefinitionModel)
AssociationGeneratorgetAssociationName in interface AssociationGeneratorattributeDefinitionModel - the integration object attribute definition modelprotected void checkIsApplicablePrecondition(IntegrationObjectItemAttributeModel attributeDefinitionModel)
AssociationGenerator.isApplicable(IntegrationObjectItemAttributeModel) method. Specifically it checks the the model is not null
and contains an AttributeDescriptorModel.attributeDefinitionModel - a model to analyzeprotected java.lang.String getAssociationName(TypeAttributeDescriptor descriptor)
descriptor - a descriptor to generate the association name for."FK_<item_type>_<attribute_type>" format, where item_type is the type
containing the attribute descriptor and attribute_type is the type of the attribute values or, in other words,
type referenced by the attribute.protected TypeAttributeDescriptor asDescriptor(IntegrationObjectItemAttributeModel attributeDefinitionModel)
attributeDefinitionModel - a model to convert.protected java.lang.String getSourceRole(TypeAttributeDescriptor descriptor)
descriptor - an attribute descriptor to generate the source role for.TypeDescriptor containing the attribute descriptor.TypeAttributeDescriptor.getTypeDescriptor(),
TypeDescriptor.getTypeCode()protected java.lang.String getTargetRole(TypeAttributeDescriptor descriptor)
descriptor - an attribute descriptor to generate the target role for.TypeDescriptor referenced by the attribute descriptor (type of the attribute values).TypeAttributeDescriptor.getAttributeType(),
TypeDescriptor.getTypeCode()protected EdmMultiplicity getSourceCardinality(TypeAttributeDescriptor descriptor)
descriptor - descriptor to derive the cardinality fromprotected EdmMultiplicity getTargetCardinality(TypeAttributeDescriptor descriptor)
descriptor - descriptor to derive the cardinality fromCopyright © 2018 SAP SE. All Rights Reserved.