Package org.apache.olingo.odata2.api.edm
Interface EdmEntityContainer
-
- All Superinterfaces:
EdmAnnotatable,EdmNamed
public interface EdmEntityContainer extends EdmNamed, EdmAnnotatable
@org.apache.olingo.odata2.DoNotImplement A CSDL EntityContainer elementEdmEntityContainer hold the information of EntitySets, FunctionImports and AssociationSets contained
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EdmAssociationSetgetAssociationSet(EdmEntitySet sourceEntitySet, EdmNavigationProperty navigationProperty)Get contained AssociationSet by providing the source entity set and the navigation propertyList<EdmAssociationSet>getAssociationSets()ATTENTION: This method does not support LAZY LOADING.EdmEntitySetgetEntitySet(String name)Get contained EntitySet by nameList<EdmEntitySet>getEntitySets()ATTENTION: This method does not support LAZY LOADING.EdmFunctionImportgetFunctionImport(String name)Get contained FunctionImport by namebooleanisDefaultEntityContainer()-
Methods inherited from interface org.apache.olingo.odata2.api.edm.EdmAnnotatable
getAnnotations
-
-
-
-
Method Detail
-
isDefaultEntityContainer
boolean isDefaultEntityContainer()
- Returns:
- boolean true if this is the default container
-
getEntitySet
EdmEntitySet getEntitySet(String name) throws EdmException
Get contained EntitySet by name- Parameters:
name- Nome- Returns:
EdmEntitySet- Throws:
EdmException- Caso ocorra uma exceção EDM
-
getEntitySets
List<EdmEntitySet> getEntitySets() throws EdmException
ATTENTION: This method does not support LAZY LOADING.
Get list of all contained EntitySets.- Returns:
- with all contained
EdmEntitySet - Throws:
EdmException- Caso ocorra uma exceção EDM
-
getFunctionImport
EdmFunctionImport getFunctionImport(String name) throws EdmException
Get contained FunctionImport by name- Parameters:
name- Nome- Returns:
EdmFunctionImport- Throws:
EdmException- Caso ocorra uma exceção EDM
-
getAssociationSet
EdmAssociationSet getAssociationSet(EdmEntitySet sourceEntitySet, EdmNavigationProperty navigationProperty) throws EdmException
Get contained AssociationSet by providing the source entity set and the navigation property- Parameters:
sourceEntitySet- of typeEdmEntitySetnavigationProperty- of typeEdmNavigationProperty- Returns:
EdmAssociationSet- Throws:
EdmException- Caso ocorra uma exceção EDM
-
getAssociationSets
List<EdmAssociationSet> getAssociationSets() throws EdmException
ATTENTION: This method does not support LAZY LOADING.
Get list of all contained AssociationSets- Returns:
- list with all contained
EdmAssociationSet - Throws:
EdmException- Caso ocorra uma exceção EDM
-
-