Class StringValue
- java.lang.Object
-
- com.healthmarketscience.jackcess.impl.expr.BaseValue
-
- com.healthmarketscience.jackcess.impl.expr.StringValue
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.healthmarketscience.jackcess.expr.Value
Value.Type
-
-
Constructor Summary
Constructors Constructor Description StringValue(String val)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget()BigDecimalgetAsBigDecimal(LocaleContext ctx)booleangetAsBoolean(LocaleContext ctx)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)StringgetAsString(LocaleContext ctx)Value.TypegetType()-
Methods inherited from class com.healthmarketscience.jackcess.impl.expr.BaseValue
getAsLocalDateTime, isNull, toString
-
-
-
-
Constructor Detail
-
StringValue
public StringValue(String val)
-
-
Method Detail
-
getType
public Value.Type getType()
- Returns:
- the type of this value
-
get
public Object get()
- Returns:
- the raw primitive value
-
getAsBoolean
public boolean getAsBoolean(LocaleContext ctx)
- Specified by:
getAsBooleanin interfaceValue- Overrides:
getAsBooleanin classBaseValue- Returns:
- this primitive value converted to a boolean
-
getAsString
public String getAsString(LocaleContext ctx)
- Specified by:
getAsStringin interfaceValue- Overrides:
getAsStringin classBaseValue- Returns:
- this primitive value converted to a String
-
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
-
getAsBigDecimal
public BigDecimal getAsBigDecimal(LocaleContext ctx)
- Specified by:
getAsBigDecimalin interfaceValue- Overrides:
getAsBigDecimalin classBaseValue- Returns:
- this primitive value converted to a BigDecimal
-
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
-
-