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.booleanIndicates 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, getAnnotationsMethods inherited from interface org.apache.olingo.commons.api.edm.EdmStructuredType
compatibleTo, getNavigationProperty, getNavigationPropertyNames, getProperty, getPropertyNames, getStructuralProperty, isAbstract, isOpenTypeMethods 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:
EdmKeyPropertyReffor given name
-
hasStream
boolean hasStream()Indicates if the entity type is treated as Media Link Entry with associated Media Resource.- Returns:
trueif the entity type is a Media Link Entry
-
getBaseType
EdmEntityType getBaseType()Description copied from interface:EdmStructuredTypeBase types are described in the OData protocol specification.- Specified by:
getBaseTypein interfaceEdmStructuredType- Returns:
EdmStructuredType
-