Class AbstractEdm
java.lang.Object
org.apache.olingo.commons.core.edm.AbstractEdm
- All Implemented Interfaces:
Edm
- Direct Known Subclasses:
EdmProviderImpl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheAction(FullQualifiedName actionName, EdmAction action) voidcacheAliasNamespaceInfo(String alias, String namespace) voidcacheAnnotationGroup(FullQualifiedName targetName, EdmAnnotations annotationsGroup) voidcacheComplexType(FullQualifiedName compelxTypeName, EdmComplexType complexType) voidcacheEntityContainer(FullQualifiedName containerFQN, EdmEntityContainer container) voidcacheEntityType(FullQualifiedName entityTypeName, EdmEntityType entityType) voidcacheEnumType(FullQualifiedName enumName, EdmEnumType enumType) voidcacheFunction(FullQualifiedName functionName, EdmFunction function) voidcacheTerm(FullQualifiedName termName, EdmTerm term) voidcacheTypeDefinition(FullQualifiedName typeDefName, EdmTypeDefinition typeDef) protected abstract EdmAnnotationscreateAnnotationGroup(FullQualifiedName targetName, String qualifier) protected abstract EdmActioncreateBoundAction(FullQualifiedName actionName, FullQualifiedName bindingParameterTypeName, Boolean isBindingParameterCollection) protected abstract EdmFunctioncreateBoundFunction(FullQualifiedName functionName, FullQualifiedName bindingParameterTypeName, Boolean isBindingParameterCollection, List<String> parameterNames) protected abstract EdmComplexTypecreateComplexType(FullQualifiedName complexTypeName) protected abstract EdmEntityContainercreateEntityContainer(FullQualifiedName containerName) protected abstract EdmEntityTypecreateEntityType(FullQualifiedName entityTypeName) protected abstract EdmEnumTypecreateEnumType(FullQualifiedName enumName) protected abstract EdmTermcreateTerm(FullQualifiedName termName) protected abstract EdmTypeDefinitioncreateTypeDefinition(FullQualifiedName typeDefinitionName) protected abstract EdmActioncreateUnboundAction(FullQualifiedName actionName) protected abstract EdmFunctioncreateUnboundFunction(FullQualifiedName functionName, List<String> parameterNames) protected abstract List<EdmFunction>createUnboundFunctions(FullQualifiedName functionName) getAnnotationGroup(FullQualifiedName targetName, String qualifier) GetEdmAnnotationsby target.protected Map<String,List<CsdlAnnotation>> getBoundAction(FullQualifiedName actionName, FullQualifiedName bindingParameterTypeName, Boolean isBindingParameterCollection) Get Action by full qualified name and binding parameter type.getBoundActionWithBindingType(FullQualifiedName bindingParameterTypeName, Boolean isBindingParameterCollection) Get Action by full qualified name and binding parameter type.getBoundFunction(FullQualifiedName functionName, FullQualifiedName bindingParameterTypeName, Boolean isBindingParameterCollection, List<String> parameterNames) Get Function by full qualified name and binding parameter type and binding parameter names.getBoundFunctionsWithBindingType(FullQualifiedName bindingParameterTypeName, Boolean isBindingParameterCollection) Get Function by binding parameter typegetComplexType(FullQualifiedName namespaceOrAliasFQN) Get complex type by full qualified name..getComplexTypeWithAnnotations(FullQualifiedName namespaceOrAliasFQN) Get complex type with annotations by full qualified name..protected EdmComplexTypegetComplexTypeWithAnnotations(FullQualifiedName namespaceOrAliasFQN, boolean isComplexDerivedFromES) Get main entity container.getEntityContainer(FullQualifiedName namespaceOrAliasFQN) Get entity container by full qualified name.getEntityType(FullQualifiedName namespaceOrAliasFQN) Get entity type by full qualified name.getEntityTypeWithAnnotations(FullQualifiedName namespaceOrAliasFQN) Get entity type with annotations by full qualified name.protected EdmEntityTypegetEntityTypeWithAnnotations(FullQualifiedName namespaceOrAliasFQN, boolean isEntityDerivedFromES) getEnumType(FullQualifiedName namespaceOrAliasFQN) Get enum type by full qualified name.Get schema by namespace.This method DOES NOT support lazy loading.getTerm(FullQualifiedName termName) Get Term full by qualified name.getTypeDefinition(FullQualifiedName namespaceOrAliasFQN) Get a type definition by full qualified name.getUnboundAction(FullQualifiedName actionName) Get unbound Action by full qualified name.getUnboundFunction(FullQualifiedName functionName, List<String> parameterNames) Get Function by full qualified name.getUnboundFunctions(FullQualifiedName functionName) Get Function by full qualified name.protected booleanprotected booleanprotected booleanprotected voidsetIsPreviousES(boolean isPreviousES)
-
Field Details
-
schemas
-
schemaList
-
-
Constructor Details
-
AbstractEdm
public AbstractEdm()
-
-
Method Details
-
getSchemas
Description copied from interface:EdmThis method DOES NOT support lazy loading. All schemas are loaded completely!- Specified by:
getSchemasin interfaceEdm- Returns:
- all schemas defined for this EDM
-
getSchema
Description copied from interface:EdmGet schema by namespace. -
getEntityContainer
Description copied from interface:EdmGet main entity container.
SeeEdmEntityContainerfor more information.- Specified by:
getEntityContainerin interfaceEdm- Returns:
EdmEntityContainer
-
getEntityContainer
Description copied from interface:EdmGet entity container by full qualified name.
SeeEdmEntityContainerfor more information.- Specified by:
getEntityContainerin interfaceEdm- Parameters:
namespaceOrAliasFQN- full qualified name of entity container- Returns:
EdmEntityContainer
-
getEnumType
Description copied from interface:EdmGet enum type by full qualified name.
SeeEdmEnumTypefor more information- Specified by:
getEnumTypein interfaceEdm- Parameters:
namespaceOrAliasFQN- full qualified name of enum type- Returns:
EdmEnumType
-
getTypeDefinition
Description copied from interface:EdmGet a type definition by full qualified name.
SeeEdmTypeDefinitionfor more information- Specified by:
getTypeDefinitionin interfaceEdm- Parameters:
namespaceOrAliasFQN- full qualified name of type definition- Returns:
EdmTypeDefinition
-
getEntityType
Description copied from interface:EdmGet entity type by full qualified name.
SeeEdmEntityTypefor more information.- Specified by:
getEntityTypein interfaceEdm- Parameters:
namespaceOrAliasFQN- full qualified name of entity type- Returns:
EdmEntityType
-
getEntityTypeWithAnnotations
Description copied from interface:EdmGet entity type with annotations by full qualified name.
SeeEdmEntityTypefor more information.- Specified by:
getEntityTypeWithAnnotationsin interfaceEdm- Parameters:
namespaceOrAliasFQN- full qualified name of entity type- Returns:
EdmEntityType
-
getEntityTypeWithAnnotations
protected EdmEntityType getEntityTypeWithAnnotations(FullQualifiedName namespaceOrAliasFQN, boolean isEntityDerivedFromES) -
getComplexTypeWithAnnotations
protected EdmComplexType getComplexTypeWithAnnotations(FullQualifiedName namespaceOrAliasFQN, boolean isComplexDerivedFromES) -
getComplexType
Description copied from interface:EdmGet complex type by full qualified name..
SeeEdmComplexTypefor more information.- Specified by:
getComplexTypein interfaceEdm- Parameters:
namespaceOrAliasFQN- full qualified name of complex type- Returns:
EdmComplexType
-
getComplexTypeWithAnnotations
Description copied from interface:EdmGet complex type with annotations by full qualified name..
SeeEdmComplexTypefor more information.- Specified by:
getComplexTypeWithAnnotationsin interfaceEdm- Parameters:
namespaceOrAliasFQN- full qualified name of complex type- Returns:
EdmComplexType
-
getUnboundAction
Description copied from interface:EdmGet unbound Action by full qualified name.- Specified by:
getUnboundActionin interfaceEdm- Parameters:
actionName- must not be null- Returns:
EdmAction
-
getBoundAction
public EdmAction getBoundAction(FullQualifiedName actionName, FullQualifiedName bindingParameterTypeName, Boolean isBindingParameterCollection) Description copied from interface:EdmGet Action by full qualified name and binding parameter type.- Specified by:
getBoundActionin interfaceEdm- Parameters:
actionName- must not be nullbindingParameterTypeName- must not be nullisBindingParameterCollection- may be null- Returns:
EdmAction
-
getUnboundFunctions
Description copied from interface:EdmGet Function by full qualified name.- Specified by:
getUnboundFunctionsin interfaceEdm- Parameters:
functionName- must not be null- Returns:
EdmFunction
-
getUnboundFunction
Description copied from interface:EdmGet Function by full qualified name.- Specified by:
getUnboundFunctionin interfaceEdm- Parameters:
functionName- must not be nullparameterNames- may be null: in this case it is considered as empty- Returns:
EdmFunction
-
getBoundFunction
public EdmFunction getBoundFunction(FullQualifiedName functionName, FullQualifiedName bindingParameterTypeName, Boolean isBindingParameterCollection, List<String> parameterNames) Description copied from interface:EdmGet Function by full qualified name and binding parameter type and binding parameter names.- Specified by:
getBoundFunctionin interfaceEdm- Parameters:
functionName- must not be nullbindingParameterTypeName- must not be nullisBindingParameterCollection- may be nullparameterNames- may be null: in this case it is considered as empty- Returns:
EdmFunction
-
getTerm
Description copied from interface:EdmGet Term full by qualified name. -
getAnnotationGroup
Description copied from interface:EdmGetEdmAnnotationsby target.- Specified by:
getAnnotationGroupin interfaceEdm- Parameters:
targetName- edm:Annotations targetqualifier- for the target. Can beNULL- Returns:
EdmAnnotations
-
createSchemas
-
createAliasToNamespaceInfo
-
cacheAliasNamespaceInfo
-
createEntityContainer
-
cacheEntityContainer
-
createEnumType
-
cacheEnumType
-
createTypeDefinition
-
cacheTypeDefinition
-
createEntityType
-
cacheEntityType
-
createComplexType
-
cacheComplexType
-
createUnboundAction
-
createUnboundFunctions
-
createUnboundFunction
protected abstract EdmFunction createUnboundFunction(FullQualifiedName functionName, List<String> parameterNames) -
createBoundAction
protected abstract EdmAction createBoundAction(FullQualifiedName actionName, FullQualifiedName bindingParameterTypeName, Boolean isBindingParameterCollection) -
createBoundFunction
protected abstract EdmFunction createBoundFunction(FullQualifiedName functionName, FullQualifiedName bindingParameterTypeName, Boolean isBindingParameterCollection, List<String> parameterNames) -
cacheFunction
-
cacheAction
-
createTerm
-
cacheTerm
-
createAnnotationGroup
protected abstract EdmAnnotations createAnnotationGroup(FullQualifiedName targetName, String qualifier) -
cacheAnnotationGroup
-
getBoundActionWithBindingType
public EdmAction getBoundActionWithBindingType(FullQualifiedName bindingParameterTypeName, Boolean isBindingParameterCollection) Description copied from interface:EdmGet Action by full qualified name and binding parameter type. Note: action can not be overloaded on binding type- Specified by:
getBoundActionWithBindingTypein interfaceEdm- Parameters:
bindingParameterTypeName- must not be nullisBindingParameterCollection- may be null- Returns:
EdmAction
-
getBoundFunctionsWithBindingType
public List<EdmFunction> getBoundFunctionsWithBindingType(FullQualifiedName bindingParameterTypeName, Boolean isBindingParameterCollection) Description copied from interface:EdmGet Function by binding parameter type- Specified by:
getBoundFunctionsWithBindingTypein interfaceEdm- Parameters:
bindingParameterTypeName- must not be nullisBindingParameterCollection- may be null- Returns:
EdmFunction
-
isEntityDerivedFromES
protected boolean isEntityDerivedFromES() -
isComplexDerivedFromES
protected boolean isComplexDerivedFromES() -
setIsPreviousES
protected void setIsPreviousES(boolean isPreviousES) -
isPreviousES
protected boolean isPreviousES() -
getAnnotationsMap
-