Class ODataEntityContainer
java.lang.Object
de.hybris.platform.odata2services.odata.ODataEntityContainer
A helper class for exploring and evaluating content of an OData
Schema object.-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsAssociationSetBetween(String type1, String type2) Checks whether this container contains anAssociationSetbetween the specified types.Retrieves names of all AssociationSets present in the content of this container.Retrieves all entity types referred from the EntitySet elements present in this container.
-
Method Details
-
containsAssociationSetBetween
Checks whether this container contains anAssociationSetbetween the specified types.- Parameters:
type1- simple (not fully qualified) type name for the one end of the association.type2- simple (not fully qualified) type name for the other end of the association.- Returns:
true, if suchAssociationSetis present in the content of this container;false, otherwise.
-
getEntitySetTypes
Retrieves all entity types referred from the EntitySet elements present in this container.- Returns:
- a collection of all entity types. The types are stripped of the schema name, so if EntitySet type is
"MyNamespace.MyType", then only"MyType"is returned. If there are no entity sets defined in this container, then an empty collection is returned.
-
getAssociationSetNames
Retrieves names of all AssociationSets present in the content of this container.- Returns:
- a collection of all association set names or an empty collection, if this container does not have a single
AssociationSet.
-