Interface EdmEntityType
- All Superinterfaces:
EdmAnnotatable
,EdmNamed
,EdmStructuredType
,EdmType
A CSDL EntityType element.
-
Method Summary
Modifier and TypeMethodDescriptionBase types are described in the OData protocol specification.Gets all key predicate names.getKeyPropertyRef
(String keyPredicateName) Get a key property ref by its name.Get all key properties references as list ofEdmKeyPropertyRef
.boolean
Indicates if the entity type is treated as Media Link Entry with associated Media Resource.Methods inherited from interface org.apache.olingo.commons.api.edm.EdmAnnotatable
getAnnotation, getAnnotations
Methods inherited from interface org.apache.olingo.commons.api.edm.EdmStructuredType
compatibleTo, getNavigationProperty, getNavigationPropertyNames, getProperty, getPropertyNames, getStructuralProperty, isAbstract, isOpenType
Methods inherited from interface org.apache.olingo.commons.api.edm.EdmType
getFullQualifiedName, getKind, getNamespace
-
Method Details
-
getKeyPredicateNames
Gets all key predicate names. In case an alias is defined for a key predicate this will be returned.- Returns:
- collection of key property names of type List<String>
-
getKeyPropertyRefs
List<EdmKeyPropertyRef> getKeyPropertyRefs()Get all key properties references as list ofEdmKeyPropertyRef
.- Returns:
- collection of key properties of type List<EdmKeyPropertyRef>
-
getKeyPropertyRef
Get a key property ref by its name.- Parameters:
keyPredicateName
- name of key property- Returns:
EdmKeyPropertyRef
for given name
-
hasStream
boolean hasStream()Indicates if the entity type is treated as Media Link Entry with associated Media Resource.- Returns:
true
if the entity type is a Media Link Entry
-
getBaseType
EdmEntityType getBaseType()Description copied from interface:EdmStructuredType
Base types are described in the OData protocol specification.- Specified by:
getBaseType
in interfaceEdmStructuredType
- Returns:
EdmStructuredType
-