public class CsdlParameter extends CsdlAbstractEdmItem implements CsdlNamed, CsdlAnnotatable
Constructor and Description |
---|
CsdlParameter() |
Modifier and Type | Method and Description |
---|---|
List<CsdlAnnotation> |
getAnnotations()
Returns a list of annotations
|
CsdlMapping |
getMapping()
Gets mapping.
|
Integer |
getMaxLength()
Gets max length.
|
String |
getName()
Gets name.
|
Integer |
getPrecision()
Gets precision.
|
Integer |
getScale()
Gets scale.
|
SRID |
getSrid()
Gets srid.
|
String |
getType()
Gets type.
|
FullQualifiedName |
getTypeFQN()
Gets type fQN.
|
boolean |
isCollection()
Is collection.
|
boolean |
isNullable()
Is nullable.
|
CsdlParameter |
setAnnotations(List<CsdlAnnotation> annotations)
Sets a list of annotations
|
CsdlParameter |
setCollection(boolean isCollection)
Sets collection.
|
CsdlParameter |
setMapping(CsdlMapping mapping)
Sets mapping.
|
CsdlParameter |
setMaxLength(Integer maxLength)
Sets max length.
|
CsdlParameter |
setName(String name)
Sets name.
|
CsdlParameter |
setNullable(boolean nullable)
Sets nullable.
|
CsdlParameter |
setPrecision(Integer precision)
Sets precision.
|
CsdlParameter |
setScale(Integer scale)
Sets scale.
|
CsdlParameter |
setSrid(SRID srid)
Sets srid.
|
CsdlParameter |
setType(FullQualifiedName type)
Sets type.
|
CsdlParameter |
setType(String type)
Sets type.
|
getAllByName, getOneByName
public CsdlParameter setName(String name)
name
- the namepublic String getType()
public FullQualifiedName getTypeFQN()
public CsdlParameter setType(String type)
type
- the typepublic CsdlParameter setType(FullQualifiedName type)
type
- the typepublic boolean isCollection()
public CsdlParameter setCollection(boolean isCollection)
isCollection
- the is collectionpublic boolean isNullable()
public CsdlParameter setNullable(boolean nullable)
nullable
- the nullablepublic Integer getMaxLength()
public CsdlParameter setMaxLength(Integer maxLength)
maxLength
- the max lengthpublic Integer getPrecision()
public CsdlParameter setPrecision(Integer precision)
precision
- the precisionpublic Integer getScale()
public CsdlParameter setScale(Integer scale)
scale
- the scalepublic SRID getSrid()
public CsdlParameter setSrid(SRID srid)
srid
- the sridpublic List<CsdlAnnotation> getAnnotations()
CsdlAnnotatable
getAnnotations
in interface CsdlAnnotatable
public CsdlParameter setAnnotations(List<CsdlAnnotation> annotations)
annotations
- list of annotationspublic CsdlMapping getMapping()
public CsdlParameter setMapping(CsdlMapping mapping)
mapping
- the mappingCopyright © 2013–2018 The Apache Software Foundation. All rights reserved.