Class EdmProvider
- java.lang.Object
-
- org.apache.olingo.odata2.api.edm.provider.EdmProvider
-
public abstract class EdmProvider extends Object
Default EDM Provider which is to be extended by the application
-
-
Constructor Summary
Constructors Constructor Description EdmProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AliasInfo>getAliasInfos()This method should return a list of all defined aliases and their associated namespace.AssociationgetAssociation(FullQualifiedName edmFQName)This method should return anAssociationor null if nothing is foundAssociationSetgetAssociationSet(String entityContainer, FullQualifiedName association, String sourceEntitySetName, String sourceEntitySetRole)This method should return anAssociationSetor null if nothing is foundComplexTypegetComplexType(FullQualifiedName edmFQName)This method should return aComplexTypeor null if nothing is foundEntityContainerInfogetEntityContainerInfo(String name)This method should return anEntityContainerInfoor null if nothing is foundEntitySetgetEntitySet(String entityContainer, String name)This method should return anEntitySetor null if nothing is foundEntityTypegetEntityType(FullQualifiedName edmFQName)This method should return anEntityTypeor null if nothing is foundFunctionImportgetFunctionImport(String entityContainer, String name)This method should return aFunctionImportor null if nothing is foundList<Schema>getSchemas()This method should return a collection of allSchemaor null if nothing is found
-
-
-
Method Detail
-
getEntityContainerInfo
public EntityContainerInfo getEntityContainerInfo(String name) throws ODataException
This method should return anEntityContainerInfoor null if nothing is found- Parameters:
name- (null for default container)- Returns:
EntityContainerInfofor the given name- Throws:
ODataException- Caso ocorra exceção OData
-
getEntityType
public EntityType getEntityType(FullQualifiedName edmFQName) throws ODataException
This method should return anEntityTypeor null if nothing is found- Parameters:
edmFQName- Nome- Returns:
EntityTypefor the given name- Throws:
ODataException- Caso ocorra exceção OData
-
getComplexType
public ComplexType getComplexType(FullQualifiedName edmFQName) throws ODataException
This method should return aComplexTypeor null if nothing is found- Parameters:
edmFQName- Nome- Returns:
ComplexTypefor the given name- Throws:
ODataException- Caso ocorra exceção OData
-
getAssociation
public Association getAssociation(FullQualifiedName edmFQName) throws ODataException
This method should return anAssociationor null if nothing is found- Parameters:
edmFQName- Nome- Returns:
Associationfor the given name- Throws:
ODataException- Caso ocorra exceção OData
-
getEntitySet
public EntitySet getEntitySet(String entityContainer, String name) throws ODataException
This method should return anEntitySetor null if nothing is found- Parameters:
entityContainer- Containername- Nome- Returns:
EntitySetfor the given container name and entity set name- Throws:
ODataException- Caso ocorra exceção OData
-
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- Containerassociation- AssociaçãosourceEntitySetName- NomesourceEntitySetRole- Regra- Returns:
AssociationSetfor the given container name, association name, source entity set name and source entity set role- Throws:
ODataException- Caso ocorra exceção OData
-
getFunctionImport
public FunctionImport getFunctionImport(String entityContainer, String name) throws ODataException
This method should return aFunctionImportor null if nothing is found- Parameters:
entityContainer- Containername- Nome- Returns:
FunctionImportfor the given container name and function import name- Throws:
ODataException- Caso ocorra exceção OData
-
getSchemas
public List<Schema> getSchemas() throws ODataException
This method should return a collection of allSchemaor null if nothing is found- Returns:
- List<
Schema> - Throws:
ODataException- Caso ocorra exceção OData
-
getAliasInfos
public List<AliasInfo> getAliasInfos() throws ODataException
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- Caso ocorra exceção OData
-
-