public class DynamicProperty extends Object implements EdmProperty
| Constructor and Description |
|---|
DynamicProperty(String name,
EdmType type)
Creates a dynamic property with a mandatory name and an optional type.
|
| Modifier and Type | Method and Description |
|---|---|
EdmAnnotation |
getAnnotation(EdmTerm term,
String qualifier) |
List<EdmAnnotation> |
getAnnotations()
Get list of all annotations.
|
String |
getDefaultValue() |
EdmMapping |
getMapping()
Get mapping information applied to an EDM element.
|
Integer |
getMaxLength() |
String |
getMimeType()
Gets the related MIME type for the property.
|
String |
getName() |
Integer |
getPrecision() |
Integer |
getScale() |
String |
getScaleAsString() |
SRID |
getSrid() |
EdmType |
getType()
See
EdmType for more information about possible types. |
EdmType |
getTypeWithAnnotations()
See
EdmType for more information about possible types. |
boolean |
isCollection() |
boolean |
isNullable() |
boolean |
isPrimitive()
Gets the info if the property is a primitive property.
|
boolean |
isUnicode() |
DynamicProperty |
setPrecision(Integer precision) |
DynamicProperty |
setScale(Integer scale) |
DynamicProperty |
setScaleAsString(String scaleAsString) |
public EdmType getType()
EdmTypedEdmType for more information about possible types.public boolean isCollection()
isCollection in interface EdmTypedpublic EdmMapping getMapping()
EdmMappablegetMapping in interface EdmMappableEdmMapping or null if no mapping is definedpublic String getMimeType()
EdmPropertygetMimeType in interface EdmPropertypublic boolean isNullable()
isNullable in interface EdmPropertypublic Integer getMaxLength()
getMaxLength in interface EdmPropertypublic Integer getPrecision()
getPrecision in interface EdmPropertypublic Integer getScale()
getScale in interface EdmPropertypublic String getScaleAsString()
getScaleAsString in interface EdmPropertypublic SRID getSrid()
getSrid in interface EdmPropertypublic boolean isUnicode()
isUnicode in interface EdmPropertypublic String getDefaultValue()
getDefaultValue in interface EdmPropertypublic boolean isPrimitive()
EdmPropertyisPrimitive in interface EdmPropertypublic EdmAnnotation getAnnotation(EdmTerm term, String qualifier)
getAnnotation in interface EdmAnnotatableterm - term used for the annotation. MUST NOT be null.qualifier - for the term. Can be NULLpublic List<EdmAnnotation> getAnnotations()
EdmAnnotatablegetAnnotations in interface EdmAnnotatablepublic EdmType getTypeWithAnnotations()
EdmPropertyEdmType for more information about possible types.getTypeWithAnnotations in interface EdmPropertyEdmTypepublic DynamicProperty setPrecision(Integer precision)
public DynamicProperty setScale(Integer scale)
public DynamicProperty setScaleAsString(String scaleAsString)
Copyright © 2023. All rights reserved.