Interface AssociationGenerator
-
- All Superinterfaces:
SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.Association,IntegrationObjectItemAttributeModel>
- All Known Implementing Classes:
AbstractAssociationGenerator,CollectionAssociationGenerator,OneToOneAssociationGenerator
public interface AssociationGenerator extends SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.Association,IntegrationObjectItemAttributeModel>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description org.apache.olingo.odata2.api.edm.provider.Associationgenerate(IntegrationObjectItemAttributeModel attribute)Deprecated, for removal: This API element is subject to removal in a future version.convert the IntegrationObjectItemAttributeModel to a TypeAttributeDescriptor and use thegenerate(TypeAttributeDescriptor)method.org.apache.olingo.odata2.api.edm.provider.Associationgenerate(TypeAttributeDescriptor descriptor)Generates an association for the referenced TypeAttributeDescriptorjava.lang.StringgetAssociationName(IntegrationObjectItemAttributeModel attributeDefinitionModel)Deprecated, for removal: This API element is subject to removal in a future version.convert the IntegrationObjectItemAttributeModel to a TypeAttributeDescriptor and use thegetAssociationName(TypeAttributeDescriptor)method.java.lang.StringgetAssociationName(TypeAttributeDescriptor attributeDescriptor)Deprecated, for removal: This API element is subject to removal in a future version.Usegenerate(TypeAttributeDescriptor)and then retrieve the name from the generated associationjava.lang.StringgetSourceRole(IntegrationObjectItemAttributeModel attributeDefinitionModel)Deprecated, for removal: This API element is subject to removal in a future version.convert the IntegrationObjectItemAttributeModel to a TypeAttributeDescriptor and use thegetSourceRole(TypeAttributeDescriptor)method.java.lang.StringgetSourceRole(TypeAttributeDescriptor attributeDescriptor)Deprecated, for removal: This API element is subject to removal in a future version.Usegenerate(TypeAttributeDescriptor)and then retrieve the role from the generated association's end2java.lang.StringgetTargetRole(IntegrationObjectItemAttributeModel attributeDefinitionModel)Deprecated, for removal: This API element is subject to removal in a future version.convert the IntegrationObjectItemAttributeModel to a TypeAttributeDescriptor and use thegetTargetRole(TypeAttributeDescriptor)method.java.lang.StringgetTargetRole(TypeAttributeDescriptor descriptor)Deprecated, for removal: This API element is subject to removal in a future version.Usegenerate(TypeAttributeDescriptor)and then retrieve the role from the generated association's end2booleanisApplicable(IntegrationObjectItemAttributeModel attributeDefinitionModel)Deprecated, for removal: This API element is subject to removal in a future version.convert the IntegrationObjectItemAttributeModel to a TypeAttributeDescriptor and use theisApplicable(TypeAttributeDescriptor)method.booleanisApplicable(TypeAttributeDescriptor attributeDescriptor)Determines if this association generator is applicable for the given attribute descriptor
-
-
-
Method Detail
-
generate
org.apache.olingo.odata2.api.edm.provider.Association generate(TypeAttributeDescriptor descriptor)
Generates an association for the referenced TypeAttributeDescriptor- Parameters:
descriptor- the integration object attribute descriptor- Returns:
- the association
-
generate
@Deprecated(since="1905.08-CEP", forRemoval=true) org.apache.olingo.odata2.api.edm.provider.Association generate(IntegrationObjectItemAttributeModel attribute)Deprecated, for removal: This API element is subject to removal in a future version.convert the IntegrationObjectItemAttributeModel to a TypeAttributeDescriptor and use thegenerate(TypeAttributeDescriptor)method.Generates an association for the referenced IntegrationObjectItemAttributeModel- Specified by:
generatein interfaceSchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.Association,IntegrationObjectItemAttributeModel>- Parameters:
attribute- the integration object attribute- Returns:
- the association
-
getSourceRole
@Deprecated(since="1905.08-CEP", forRemoval=true) java.lang.String getSourceRole(IntegrationObjectItemAttributeModel attributeDefinitionModel)Deprecated, for removal: This API element is subject to removal in a future version.convert the IntegrationObjectItemAttributeModel to a TypeAttributeDescriptor and use thegetSourceRole(TypeAttributeDescriptor)method.Derives the source role from the given attribute definition model- Parameters:
attributeDefinitionModel- the integration object attribute definition model- Returns:
- the source role
-
getSourceRole
@Deprecated(since="1905.10-CEP", forRemoval=true) java.lang.String getSourceRole(TypeAttributeDescriptor attributeDescriptor)Deprecated, for removal: This API element is subject to removal in a future version.Usegenerate(TypeAttributeDescriptor)and then retrieve the role from the generated association's end2Derives the source role from the given attribute descriptor- Parameters:
attributeDescriptor- the integration object attribute descriptor- Returns:
- the source role
-
getTargetRole
@Deprecated(since="1905.08-CEP", forRemoval=true) java.lang.String getTargetRole(IntegrationObjectItemAttributeModel attributeDefinitionModel)Deprecated, for removal: This API element is subject to removal in a future version.convert the IntegrationObjectItemAttributeModel to a TypeAttributeDescriptor and use thegetTargetRole(TypeAttributeDescriptor)method.Derives the target role from the given attribute definition model- Parameters:
attributeDefinitionModel- the integration object attribute definition model- Returns:
- the target role
-
getTargetRole
@Deprecated(since="1905.10-CEP", forRemoval=true) java.lang.String getTargetRole(TypeAttributeDescriptor descriptor)Deprecated, for removal: This API element is subject to removal in a future version.Usegenerate(TypeAttributeDescriptor)and then retrieve the role from the generated association's end2Derives the target role from the given attribute descriptor- Parameters:
descriptor- the integration object attribute descriptor- Returns:
- the target role
-
getAssociationName
@Deprecated(since="1905.08-CEP", forRemoval=true) java.lang.String getAssociationName(IntegrationObjectItemAttributeModel attributeDefinitionModel)Deprecated, for removal: This API element is subject to removal in a future version.convert the IntegrationObjectItemAttributeModel to a TypeAttributeDescriptor and use thegetAssociationName(TypeAttributeDescriptor)method.Derives the association name from the given attribute definition model- Parameters:
attributeDefinitionModel- the integration object attribute definition model- Returns:
- the association name
-
getAssociationName
@Deprecated(since="1905.10-CEP", forRemoval=true) java.lang.String getAssociationName(TypeAttributeDescriptor attributeDescriptor)Deprecated, for removal: This API element is subject to removal in a future version.Usegenerate(TypeAttributeDescriptor)and then retrieve the name from the generated associationDerives the association name from the given attribute descriptor- Parameters:
attributeDescriptor- the integration object attribute descriptor- Returns:
- the association name
-
isApplicable
@Deprecated(since="1905.08-CEP", forRemoval=true) boolean isApplicable(IntegrationObjectItemAttributeModel attributeDefinitionModel)Deprecated, for removal: This API element is subject to removal in a future version.convert the IntegrationObjectItemAttributeModel to a TypeAttributeDescriptor and use theisApplicable(TypeAttributeDescriptor)method.Determines if this association generator is applicable for the given attribute- Parameters:
attributeDefinitionModel- the attribute we are verifying- Returns:
- true if applicable, otherwise false
-
isApplicable
boolean isApplicable(TypeAttributeDescriptor attributeDescriptor)
Determines if this association generator is applicable for the given attribute descriptor- Parameters:
attributeDescriptor- the attribute descriptor we are verifying- Returns:
- true if applicable, otherwise false
-
-