Package com.sap.cds.reflect
Interface CdsDecimal
-
- All Superinterfaces:
CdsAnnotatable
,CdsDefinition
,CdsNamed
,CdsSimpleType
,CdsType
public interface CdsDecimal extends CdsSimpleType
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Class<?>
getJavaType()
Returns the Java type of thisCdsSimpleType
definition.default Integer
getPrecision()
Returns the precision of thisCdsDecimal
.default Integer
getScale()
Returns the scale of thisCdsDecimal
.default CdsBaseType
getType()
Returns theCdsBaseType
of thisCdsSimpleType
definition.-
Methods inherited from interface com.sap.cds.reflect.CdsAnnotatable
annotations, findAnnotation, getAnnotationValue
-
Methods inherited from interface com.sap.cds.reflect.CdsDefinition
as, getKey, getKind, getName, getQualifier
-
Methods inherited from interface com.sap.cds.reflect.CdsSimpleType
accept, defaultValue, get, getQualifiedName, isSimple
-
Methods inherited from interface com.sap.cds.reflect.CdsType
isArrayed, isAssociation, isEnum, isSimpleType, isStructured
-
-
-
-
Field Detail
-
PRECISION
static final String PRECISION
- See Also:
- Constant Field Values
-
SCALE
static final String SCALE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPrecision
default Integer getPrecision()
Returns the precision of thisCdsDecimal
.- Returns:
- the precision of this Decimal type, not
null
-
getScale
default Integer getScale()
Returns the scale of thisCdsDecimal
.- Returns:
- the scale of this Decimal type, not
null
-
getType
default CdsBaseType getType()
Description copied from interface:CdsSimpleType
Returns theCdsBaseType
of thisCdsSimpleType
definition.- Specified by:
getType
in interfaceCdsSimpleType
- Returns:
- the
CdsBaseType
of this simple type definition, notnull
-
getJavaType
default Class<?> getJavaType()
Description copied from interface:CdsSimpleType
Returns the Java type of thisCdsSimpleType
definition.- Specified by:
getJavaType
in interfaceCdsSimpleType
- Returns:
- the Java type of this simple type definition, not
null
-
-