public class DynamicProperty extends Object implements org.apache.olingo.commons.api.edm.EdmProperty
| Constructor and Description |
|---|
DynamicProperty(String name,
org.apache.olingo.commons.api.edm.EdmType type)
Creates a dynamic property with a mandatory name and an optional type.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.olingo.commons.api.edm.EdmAnnotation |
getAnnotation(org.apache.olingo.commons.api.edm.EdmTerm term,
String qualifier) |
List<org.apache.olingo.commons.api.edm.EdmAnnotation> |
getAnnotations() |
String |
getDefaultValue() |
org.apache.olingo.commons.api.edm.EdmMapping |
getMapping() |
Integer |
getMaxLength() |
String |
getMimeType() |
String |
getName() |
Integer |
getPrecision() |
Integer |
getScale() |
org.apache.olingo.commons.api.edm.geo.SRID |
getSrid() |
org.apache.olingo.commons.api.edm.EdmType |
getType() |
org.apache.olingo.commons.api.edm.EdmType |
getTypeWithAnnotations() |
boolean |
isCollection() |
boolean |
isNullable() |
boolean |
isPrimitive() |
boolean |
isUnicode() |
DynamicProperty |
setPrecision(Integer precision) |
DynamicProperty |
setScale(Integer scale) |
public DynamicProperty(String name, org.apache.olingo.commons.api.edm.EdmType type)
public String getName()
getName in interface org.apache.olingo.commons.api.edm.EdmNamedpublic org.apache.olingo.commons.api.edm.EdmType getType()
getType in interface org.apache.olingo.commons.api.edm.EdmTypedpublic boolean isCollection()
isCollection in interface org.apache.olingo.commons.api.edm.EdmTypedpublic org.apache.olingo.commons.api.edm.EdmMapping getMapping()
getMapping in interface org.apache.olingo.commons.api.edm.EdmMappablepublic String getMimeType()
getMimeType in interface org.apache.olingo.commons.api.edm.EdmPropertypublic boolean isNullable()
isNullable in interface org.apache.olingo.commons.api.edm.EdmPropertypublic Integer getMaxLength()
getMaxLength in interface org.apache.olingo.commons.api.edm.EdmPropertypublic Integer getPrecision()
getPrecision in interface org.apache.olingo.commons.api.edm.EdmPropertypublic Integer getScale()
getScale in interface org.apache.olingo.commons.api.edm.EdmPropertypublic org.apache.olingo.commons.api.edm.geo.SRID getSrid()
getSrid in interface org.apache.olingo.commons.api.edm.EdmPropertypublic boolean isUnicode()
isUnicode in interface org.apache.olingo.commons.api.edm.EdmPropertypublic String getDefaultValue()
getDefaultValue in interface org.apache.olingo.commons.api.edm.EdmPropertypublic boolean isPrimitive()
isPrimitive in interface org.apache.olingo.commons.api.edm.EdmPropertypublic org.apache.olingo.commons.api.edm.EdmAnnotation getAnnotation(org.apache.olingo.commons.api.edm.EdmTerm term,
String qualifier)
getAnnotation in interface org.apache.olingo.commons.api.edm.EdmAnnotatablepublic List<org.apache.olingo.commons.api.edm.EdmAnnotation> getAnnotations()
getAnnotations in interface org.apache.olingo.commons.api.edm.EdmAnnotatablepublic org.apache.olingo.commons.api.edm.EdmType getTypeWithAnnotations()
getTypeWithAnnotations in interface org.apache.olingo.commons.api.edm.EdmPropertypublic DynamicProperty setPrecision(Integer precision)
public DynamicProperty setScale(Integer scale)
Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.