Class EntityInfoAggregator
java.lang.Object
org.apache.olingo.odata2.core.ep.aggregator.EntityInfoAggregator
Aggregator to get easy and fast access to all for serialization and de-serialization necessary
EdmEntitySet
informations.-
Method Summary
Modifier and TypeMethodDescriptionbooleancanEdit()static Map<String, EntityPropertyInfo> create(EdmComplexType complexType) static EntityInfoAggregatorcreate(EdmEntitySet entitySet) Create anEntityInfoAggregatorbased on givenEdmEntitySetstatic EntityInfoAggregatorcreate(EdmEntitySet entitySet, ExpandSelectTreeNode expandSelectTree) Create anEntityInfoAggregatorbased on givenEdmEntitySetstatic EntityPropertyInfocreate(EdmFunctionImport functionImport) Create anEntityPropertyInfobased on givenEdmFunctionImportstatic EntityPropertyInfocreate(EdmProperty property) Create anEntityPropertyInfobased on givenEdmPropertygetPropertyInfo(String name) getTargetPathInfo(String targetPath) boolean
-
Method Details
-
create
public static EntityInfoAggregator create(EdmEntitySet entitySet, ExpandSelectTreeNode expandSelectTree) throws EntityProviderException Create anEntityInfoAggregatorbased on givenEdmEntitySet- Parameters:
entitySet- with which theEntityInfoAggregatoris initialized.expandSelectTree- ExpandSelectTreeNode- Returns:
- created and initialized
EntityInfoAggregator - Throws:
EntityProviderException- if during initialization ofEntityInfoAggregatorsomething goes wrong (e.g. exceptions during access ofEdmEntitySet).
-
canEdit
public boolean canEdit() -
create
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
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
- Returns:
- the edm entity set which was used to build this entity info aggregator object
-
getEntitySetName
- Returns:
- entity set name.
-
isDefaultEntityContainer
public boolean isDefaultEntityContainer()- Returns:
trueif the entity container ofEdmEntitySetis the default container, otherwisefalse.
-
getTargetPathInfo
-
getEntityType
-
getEntityContainerName
-
getTargetPathNames
- Returns:
- unmodifiable set of all found target path names.
-
getNoneSyndicationTargetPathNames
- Returns:
- unmodifiable set of found
none syndication target path names(all target path names which are not pre-defined).
-
getPropertyNames
- Returns:
- unmodifiable set of all property names.
- Throws:
EntityProviderException- Caso ocorra exceção
-
getSelectedPropertyNames
- Returns:
- unmodifiable set of selected property names.
- Throws:
EntityProviderException- Caso ocorra exceção
-
getPropertyInfos
-
getPropertyInfo
-
getETagPropertyInfos
-
getKeyPropertyInfos
- Returns:
- list of all key property infos
- Throws:
EntityProviderException- Caso ocorra exceção
-