Class EntityInfoAggregator
- java.lang.Object
-
- org.apache.olingo.odata2.core.ep.aggregator.EntityInfoAggregator
-
public class EntityInfoAggregator extends Object
Aggregator to get easy and fast access to all for serialization and de-serialization necessaryEdmEntitySetinformations.
-
-
Method Summary
-
-
-
Method Detail
-
create
public static EntityInfoAggregator create(EdmEntitySet entitySet, ExpandSelectTreeNode expandSelectTree) throws EntityProviderException
Create anEntityInfoAggregatorbased on givenEdmEntitySet- Parameters:
entitySet- with which theEntityInfoAggregatoris initialized.expandSelectTree-- Returns:
- created and initialized
EntityInfoAggregator - Throws:
EntityProviderException- if during initialization ofEntityInfoAggregatorsomething goes wrong (e.g. exceptions during access ofEdmEntitySet).
-
canEdit
public boolean canEdit()
-
create
public static EntityInfoAggregator create(EdmEntitySet entitySet) throws EntityProviderException
Create anEntityInfoAggregatorbased on givenEdmEntitySet- Parameters:
entitySet- with which theEntityInfoAggregatoris initialized.- Returns:
- created and initialized
EntityInfoAggregator - Throws:
EntityProviderException- if during initialization ofEntityInfoAggregatorsomething goes wrong (e.g. exceptions during access ofEdmEntitySet).
-
create
public static EntityPropertyInfo create(EdmProperty property) throws EntityProviderException
Create anEntityPropertyInfobased on givenEdmProperty- Parameters:
property- for which theEntityPropertyInfois created.- Returns:
- created
EntityPropertyInfo - Throws:
EntityProviderException- if create ofEntityPropertyInfosomething goes wrong (e.g. exceptions during access ofEdmProperty).
-
create
public static Map<String,EntityPropertyInfo> create(EdmComplexType complexType) throws EntityProviderException
- Parameters:
complexType- for which theEntityPropertyInfois created.- Returns:
- created map of
complex type property nametoEntityPropertyInfo - Throws:
EntityProviderException- if create ofEntityPropertyInfosomething goes wrong (e.g. exceptions during access ofEntityPropertyInfo).
-
create
public static EntityPropertyInfo create(EdmFunctionImport functionImport) throws EntityProviderException
Create anEntityPropertyInfobased on givenEdmFunctionImport- Parameters:
functionImport- for which theEntityPropertyInfois created.- Returns:
- created
EntityPropertyInfo - Throws:
EntityProviderException- if create ofEntityPropertyInfosomething goes wrong (e.g. exceptions during access ofEdmFunctionImport).
-
getEntitySet
public EdmEntitySet getEntitySet()
- Returns:
- the edm entity set which was used to build this entity info aggregator object
-
getEntitySetName
public String getEntitySetName()
- Returns:
- entity set name.
-
isDefaultEntityContainer
public boolean isDefaultEntityContainer()
- Returns:
trueif the entity container ofEdmEntitySetis the default container, otherwisefalse.
-
getTargetPathInfo
public EntityPropertyInfo getTargetPathInfo(String targetPath)
-
getEntityType
public EdmEntityType getEntityType()
-
getEntityContainerName
public String getEntityContainerName()
-
getTargetPathNames
public Collection<String> getTargetPathNames()
- Returns:
- unmodifiable set of all found target path names.
-
getNoneSyndicationTargetPathNames
public List<String> getNoneSyndicationTargetPathNames()
- Returns:
- unmodifiable set of found
none syndication target path names(all target path names which are not pre-defined).
-
getNavigationPropertyNames
public List<String> getNavigationPropertyNames() throws EntityProviderException
- Returns:
- unmodifiable set of all found navigation property names.
- Throws:
EntityProviderException
-
getPropertyNames
public List<String> getPropertyNames() throws EntityProviderException
- Returns:
- unmodifiable set of all property names.
- Throws:
EntityProviderException
-
getSelectedPropertyNames
public List<String> getSelectedPropertyNames() throws EntityProviderException
- Returns:
- unmodifiable set of selected property names.
- Throws:
EntityProviderException
-
getSelectedNavigationPropertyNames
public List<String> getSelectedNavigationPropertyNames() throws EntityProviderException
- Returns:
- unmodifiable set of selected property names.
- Throws:
EntityProviderException
-
getPropertyInfos
public Collection<EntityPropertyInfo> getPropertyInfos()
-
getPropertyInfo
public EntityPropertyInfo getPropertyInfo(String name)
-
getETagPropertyInfos
public Collection<EntityPropertyInfo> getETagPropertyInfos()
-
getKeyPropertyInfos
public List<EntityPropertyInfo> getKeyPropertyInfos() throws EntityProviderException
- Returns:
- list of all key property infos
- Throws:
EntityProviderException
-
getNavigationPropertyInfo
public NavigationPropertyInfo getNavigationPropertyInfo(String name)
-
-