Interface EntityPropertyAnnotationModel
public interface EntityPropertyAnnotationModel
Data structure representing an OData property of an entity or complex type.
-
Method Summary
Modifier and TypeMethodDescriptionName of the property as defined in the OData EDM.OData EDM type of the property as defined in the OData EDM.Precision as defined in the OData EDM.getScale()
Scale as defined in the OData EDM.boolean
Value istrue
for key properties of the OData entity.boolean
Value istrue
if this property is one of the OData simple types, andfalse
if it is an OData complex type.
-
Method Details
-
getEdmName
Name of the property as defined in the OData EDM.- Returns:
- the OData EDM name.
-
isSimpleType
boolean isSimpleType()Value istrue
if this property is one of the OData simple types, andfalse
if it is an OData complex type.- Returns:
false
if this property is an OData complex type,true
else.
-
getEdmType
OData EDM type of the property as defined in the OData EDM.- Returns:
- the OData EDM type.
-
isKeyField
boolean isKeyField()Value istrue
for key properties of the OData entity.- Returns:
true
iff this property is a key field of the OData entity
-
getPrecision
Precision as defined in the OData EDM. This is only valid for decimal properties.- Returns:
- the associated precision.
-
getScale
Scale as defined in the OData EDM. This is only valid for decimal properties.- Returns:
- the associated scale.
-