Class CsdlTypeDefinition
java.lang.Object
org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmItem
org.apache.olingo.commons.api.edm.provider.CsdlTypeDefinition
- All Implemented Interfaces:
CsdlAnnotatable
,CsdlNamed
The type Csdl type definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of annotationsGets max length.getName()
Gets name.Gets precision.getScale()
Gets scale.getSrid()
Gets srid.Gets underlying type.boolean
Is unicode.setAnnotations
(List<CsdlAnnotation> annotations) Sets a list of annotationssetMaxLength
(Integer maxLength) Sets max length.Sets name.setPrecision
(Integer precision) Sets precision.Sets scale.Sets srid.setUnderlyingType
(String underlyingType) Sets underlying type.setUnderlyingType
(FullQualifiedName underlyingType) Sets underlying type.setUnicode
(boolean unicode) Sets unicode.Methods inherited from class org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmItem
getAllByName, getOneByName
-
Constructor Details
-
CsdlTypeDefinition
public CsdlTypeDefinition()
-
-
Method Details
-
getName
Description copied from interface:CsdlNamed
Gets name. -
setName
Sets name.- Parameters:
name
- the name- Returns:
- the name
-
getUnderlyingType
Gets underlying type.- Returns:
- the underlying type
-
setUnderlyingType
Sets underlying type.- Parameters:
underlyingType
- the underlying type- Returns:
- the underlying type
-
setUnderlyingType
Sets underlying type.- Parameters:
underlyingType
- the underlying type- Returns:
- the underlying type
-
getMaxLength
Gets max length.- Returns:
- the max length
-
setMaxLength
Sets max length.- Parameters:
maxLength
- the max length- Returns:
- the max length
-
getPrecision
Gets precision.- Returns:
- the precision
-
setPrecision
Sets precision.- Parameters:
precision
- the precision- Returns:
- the precision
-
getScale
Gets scale.- Returns:
- the scale
-
setScale
Sets scale.- Parameters:
scale
- the scale- Returns:
- the scale
-
isUnicode
public boolean isUnicode()Is unicode.- Returns:
- the boolean
-
setUnicode
Sets unicode.- Parameters:
unicode
- the unicode- Returns:
- the unicode
-
getSrid
Gets srid.- Returns:
- the srid
-
setSrid
Sets srid.- Parameters:
srid
- the srid- Returns:
- the srid
-
getAnnotations
Description copied from interface:CsdlAnnotatable
Returns a list of annotations- Specified by:
getAnnotations
in interfaceCsdlAnnotatable
- Returns:
- list of annotations
-
setAnnotations
Sets a list of annotations- Parameters:
annotations
- list of annotations- Returns:
- this instance
-