Class EdmProvider
java.lang.Object
org.apache.olingo.odata2.api.edm.provider.EdmProvider
- Direct Known Subclasses:
EdmxProvider
Default EDM Provider which is to be extended by the application
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method should return a list of all defined aliases and their associated namespace.getAssociation(FullQualifiedName edmFQName) This method should return anAssociationor null if nothing is foundgetAssociationSet(String entityContainer, FullQualifiedName association, String sourceEntitySetName, String sourceEntitySetRole) This method should return anAssociationSetor null if nothing is foundgetComplexType(FullQualifiedName edmFQName) This method should return aComplexTypeor null if nothing is foundgetEntityContainerInfo(String name) This method should return anEntityContainerInfoor null if nothing is foundgetEntitySet(String entityContainer, String name) This method should return anEntitySetor null if nothing is foundgetEntityType(FullQualifiedName edmFQName) This method should return anEntityTypeor null if nothing is foundgetFunctionImport(String entityContainer, String name) This method should return aFunctionImportor null if nothing is foundThis method should return a collection of allSchemaor null if nothing is found
-
Constructor Details
-
EdmProvider
public EdmProvider()
-
-
Method Details
-
getEntityContainerInfo
This method should return anEntityContainerInfoor null if nothing is found- Parameters:
name- (null for default container)- Returns:
EntityContainerInfofor the given name- Throws:
ODataException
-
getEntityType
This method should return anEntityTypeor null if nothing is found- Parameters:
edmFQName-- Returns:
EntityTypefor the given name- Throws:
ODataException
-
getComplexType
This method should return aComplexTypeor null if nothing is found- Parameters:
edmFQName-- Returns:
ComplexTypefor the given name- Throws:
ODataException
-
getAssociation
This method should return anAssociationor null if nothing is found- Parameters:
edmFQName-- Returns:
Associationfor the given name- Throws:
ODataException
-
getEntitySet
This method should return anEntitySetor null if nothing is found- Parameters:
entityContainer-name-- Returns:
EntitySetfor the given container name and entity set name- Throws:
ODataException
-
getAssociationSet
public AssociationSet getAssociationSet(String entityContainer, FullQualifiedName association, String sourceEntitySetName, String sourceEntitySetRole) throws ODataException This method should return anAssociationSetor null if nothing is found- Parameters:
entityContainer-association-sourceEntitySetName-sourceEntitySetRole-- Returns:
AssociationSetfor the given container name, association name, source entity set name and source entity set role- Throws:
ODataException
-
getFunctionImport
This method should return aFunctionImportor null if nothing is found- Parameters:
entityContainer-name-- Returns:
FunctionImportfor the given container name and function import name- Throws:
ODataException
-
getSchemas
This method should return a collection of allSchemaor null if nothing is found- Returns:
- List<
Schema> - Throws:
ODataException
-
getAliasInfos
This method should return a list of all defined aliases and their associated namespace. If not implemented aliases cannot be resolved- Returns:
- List<
AliasInfo> - Throws:
ODataException
-