Class BaseNumericValue
- java.lang.Object
-
- com.healthmarketscience.jackcess.impl.expr.BaseValue
-
- com.healthmarketscience.jackcess.impl.expr.BaseNumericValue
-
- All Implemented Interfaces:
Value
- Direct Known Subclasses:
BigDecimalValue,DoubleValue,LongValue
public abstract class BaseNumericValue extends BaseValue
- Author:
- James Ahlborn
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.healthmarketscience.jackcess.expr.Value
Value.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValuegetAsDateTimeValue(LocaleContext ctx)Since date/time values have different types, it may be more convenient to get the date/time primitive value with the appropriate type information.DoublegetAsDouble(LocaleContext ctx)IntegergetAsLongInt(LocaleContext ctx)-
Methods inherited from class com.healthmarketscience.jackcess.impl.expr.BaseValue
getAsBigDecimal, getAsBoolean, getAsLocalDateTime, getAsString, isNull, toString
-
-
-
-
Method Detail
-
getAsLongInt
public Integer getAsLongInt(LocaleContext ctx)
- Specified by:
getAsLongIntin interfaceValue- Overrides:
getAsLongIntin classBaseValue- Returns:
- this primitive value converted (rounded) to an int
-
getAsDouble
public Double getAsDouble(LocaleContext ctx)
- Specified by:
getAsDoublein interfaceValue- Overrides:
getAsDoublein classBaseValue- Returns:
- this primitive value converted (rounded) to a double
-
getAsDateTimeValue
public Value getAsDateTimeValue(LocaleContext ctx)
Description copied from interface:ValueSince date/time values have different types, it may be more convenient to get the date/time primitive value with the appropriate type information.- Specified by:
getAsDateTimeValuein interfaceValue- Overrides:
getAsDateTimeValuein classBaseValue- Returns:
- this value converted to a date/time value
-
-