Class EntityTypeMapping
- java.lang.Object
-
- org.apache.olingo.odata2.core.ep.aggregator.EntityTypeMapping
-
public class EntityTypeMapping extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EntityTypeMappingcreate(String name, Map<String,Object> mappings)static EntityTypeMappingcreate(Map<String,Object> mappings)EntityTypeMappinggetEntityTypeMapping(String name)If thisEntityTypeMappingis complex the mapping for the property with the givennameis returned; otherwise an emptyEntityTypeMappingis returned.Class<?>getMappingClass(String name)If thisEntityTypeMappingis complex the mappingClassfor the property with the givennameis returned; otherwiseNULLis returned.StringtoString()
-
-
-
Method Detail
-
create
public static EntityTypeMapping create(Map<String,Object> mappings) throws EntityProviderException
- Throws:
EntityProviderException
-
create
public static EntityTypeMapping create(String name, Map<String,Object> mappings) throws EntityProviderException
- Throws:
EntityProviderException
-
getEntityTypeMapping
public EntityTypeMapping getEntityTypeMapping(String name)
If thisEntityTypeMappingis complex the mapping for the property with the givennameis returned; otherwise an emptyEntityTypeMappingis returned.- Parameters:
name-- Returns:
- the mapping for this entity type
-
getMappingClass
public Class<?> getMappingClass(String name)
If thisEntityTypeMappingis complex the mappingClassfor the property with the givennameis returned; otherwiseNULLis returned.- Parameters:
name-- Returns:
- mapping
Classfor the property with givennameorNULL.
-
-