APIdia Launch Partner
Top Description Inners Methods
io.github.spannm.jackcess.expr

public Interface Value

Known Direct Implementers
io.github.spannm.jackcess.impl.expr.BaseDelayedValue, io.github.spannm.jackcess.impl.expr.BaseValue
Imports
java.math.BigDecimal, java.time.LocalDateTime

Wrapper for a typed primitive value used within the expression evaluation engine. Note that the "Null" value is represented by an actual Value instance with the type of Type#NULL. Also note that all the conversion methods will throw an EvalException if the conversion is not supported for the current value.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
Value.Type

the types supported within the expression evaluation engine

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the raw primitive value
get
()

Returns the raw primitive value.

public BigDecimal

Returns:

this primitive value converted to a BigDecimal
getAsBigDecimal
(LocaleContext ctx)

Returns this primitive value converted to a BigDecimal.

public boolean

Returns:

this primitive value converted to a boolean
getAsBoolean
(LocaleContext ctx)

Returns this primitive value converted to a boolean.

public Value

Returns:

this value converted to a date/time value
getAsDateTimeValue
(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.

public Double

Returns:

this primitive value converted (rounded) to a double
getAsDouble
(LocaleContext ctx)

Returns this primitive value converted (rounded) to a double.

public LocalDateTime

Returns:

this primitive value converted to a LocalDateTime
getAsLocalDateTime
(LocaleContext ctx)

Returns this primitive value converted to a LocalDateTime.

public Integer

Returns:

this primitive value converted (rounded) to an int
getAsLongInt
(LocaleContext ctx)

Returns this primitive value converted (rounded) to an int.

public String

Returns:

this primitive value converted to a String
getAsString
(LocaleContext ctx)

Returns this primitive value converted to a String.

public Value.Type

Returns:

the type of this value
getType
()

Returns the type of this value.

public boolean

Returns:

true if this value represents a "Null" value, false otherwise.
isNull
()

Returns true if this value represents a "Null" value, false otherwise.

Method Detail

getback to summary
public Object get()

Returns the raw primitive value.

Returns:Object

the raw primitive value

getAsBigDecimalback to summary
public BigDecimal getAsBigDecimal(LocaleContext ctx)

Returns this primitive value converted to a BigDecimal.

Returns:BigDecimal

this primitive value converted to a BigDecimal

getAsBooleanback to summary
public boolean getAsBoolean(LocaleContext ctx)

Returns this primitive value converted to a boolean.

Returns:boolean

this primitive value converted to a boolean

getAsDateTimeValueback to summary
public Value getAsDateTimeValue(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.

Returns:Value

this value converted to a date/time value

getAsDoubleback to summary
public Double getAsDouble(LocaleContext ctx)

Returns this primitive value converted (rounded) to a double.

Returns:Double

this primitive value converted (rounded) to a double

getAsLocalDateTimeback to summary
public LocalDateTime getAsLocalDateTime(LocaleContext ctx)

Returns this primitive value converted to a LocalDateTime.

Returns:LocalDateTime

this primitive value converted to a LocalDateTime

getAsLongIntback to summary
public Integer getAsLongInt(LocaleContext ctx)

Returns this primitive value converted (rounded) to an int.

Returns:Integer

this primitive value converted (rounded) to an int

getAsStringback to summary
public String getAsString(LocaleContext ctx)

Returns this primitive value converted to a String.

Returns:String

this primitive value converted to a String

getTypeback to summary
public Value.Type getType()

Returns the type of this value.

Returns:Value.Type

the type of this value

isNullback to summary
public boolean isNull()

Returns true if this value represents a "Null" value, false otherwise.

Returns:boolean

true if this value represents a "Null" value, false otherwise.

io.github.spannm.jackcess.expr back to summary

public final Enum Value.Type

extends Enum<Value.Type>
Class Inheritance

the types supported within the expression evaluation engine

Field Summary

Modifier and TypeField and Description
public static final Value.Type
public static final Value.Type
public static final Value.Type
public static final Value.Type
public static final Value.Type
public static final Value.Type
public static final Value.Type
public static final Value.Type

Constructor Summary

AccessConstructor and Description
private
Type()

Method Summary

Modifier and TypeMethod and Description
public Value.Type
public Value.Type
private boolean
inRange(Value.Type start, Value.Type end)

public boolean
public boolean
public boolean
public boolean
public static Value.Type
public static Value.Type[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

BIG_DECback to summary
public static final Value.Type BIG_DEC
DATEback to summary
public static final Value.Type DATE
DATE_TIMEback to summary
public static final Value.Type DATE_TIME
DOUBLEback to summary
public static final Value.Type DOUBLE
LONGback to summary
public static final Value.Type LONG
NULLback to summary
public static final Value.Type NULL
STRINGback to summary
public static final Value.Type STRING
TIMEback to summary
public static final Value.Type TIME

Constructor Detail

Typeback to summary
private Type()

Method Detail

getPreferredFPTypeback to summary
public Value.Type getPreferredFPType()
getPreferredNumericTypeback to summary
public Value.Type getPreferredNumericType()
inRangeback to summary
private boolean inRange(Value.Type start, Value.Type end)
isIntegralback to summary
public boolean isIntegral()
isNumericback to summary
public boolean isNumeric()
isStringback to summary
public boolean isString()
isTemporalback to summary
public boolean isTemporal()
valueOfback to summary
public static Value.Type valueOf(String name)
valuesback to summary
public static Value.Type[] values()