public class CsdlTypeDefinition extends CsdlAbstractEdmItem implements CsdlNamed, CsdlAnnotatable
Constructor and Description |
---|
CsdlTypeDefinition() |
Modifier and Type | Method and Description |
---|---|
List<CsdlAnnotation> |
getAnnotations()
Returns a list of annotations
|
Integer |
getMaxLength()
Gets max length.
|
String |
getName()
Gets name.
|
Integer |
getPrecision()
Gets precision.
|
Integer |
getScale()
Gets scale.
|
SRID |
getSrid()
Gets srid.
|
String |
getUnderlyingType()
Gets underlying type.
|
boolean |
isUnicode()
Is unicode.
|
CsdlTypeDefinition |
setMaxLength(Integer maxLength)
Sets max length.
|
CsdlTypeDefinition |
setName(String name)
Sets name.
|
CsdlTypeDefinition |
setPrecision(Integer precision)
Sets precision.
|
CsdlTypeDefinition |
setScale(Integer scale)
Sets scale.
|
CsdlTypeDefinition |
setSrid(SRID srid)
Sets srid.
|
CsdlTypeDefinition |
setUnderlyingType(FullQualifiedName underlyingType)
Sets underlying type.
|
CsdlTypeDefinition |
setUnderlyingType(String underlyingType)
Sets underlying type.
|
CsdlTypeDefinition |
setUnicode(boolean unicode)
Sets unicode.
|
equals, getAllByName, getOneByName, hashCode, toString
public CsdlTypeDefinition setName(String name)
name
- the namepublic String getUnderlyingType()
public CsdlTypeDefinition setUnderlyingType(String underlyingType)
underlyingType
- the underlying typepublic CsdlTypeDefinition setUnderlyingType(FullQualifiedName underlyingType)
underlyingType
- the underlying typepublic Integer getMaxLength()
public CsdlTypeDefinition setMaxLength(Integer maxLength)
maxLength
- the max lengthpublic Integer getPrecision()
public CsdlTypeDefinition setPrecision(Integer precision)
precision
- the precisionpublic Integer getScale()
public CsdlTypeDefinition setScale(Integer scale)
scale
- the scalepublic boolean isUnicode()
public CsdlTypeDefinition setUnicode(boolean unicode)
unicode
- the unicodepublic SRID getSrid()
public CsdlTypeDefinition setSrid(SRID srid)
srid
- the sridpublic List<CsdlAnnotation> getAnnotations()
CsdlAnnotatable
getAnnotations
in interface CsdlAnnotatable
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.