Class ValueSupport
- java.lang.Object
-
- com.healthmarketscience.jackcess.impl.expr.ValueSupport
-
public class ValueSupport extends Object
- Author:
- James Ahlborn
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DateTimeFormattergetDateFormatForType(LocaleContext ctx, Value.Type type)static Value.TypegetDateTimeType(LocalDateTime ldt)static ValuetoValue(boolean b)static ValuetoValue(double s)static ValuetoValue(float f)static ValuetoValue(int i)static ValuetoValue(Value.Type type, LocalDateTime ldt)static ValuetoValue(Double s)static ValuetoValue(Integer i)static ValuetoValue(String s)static ValuetoValue(BigDecimal s)static ValuetoValue(LocalDate ld)static ValuetoValue(LocalDateTime ldt)static ValuetoValue(LocalTime lt)
-
-
-
Field Detail
-
NULL_VAL
public static final Value NULL_VAL
-
TRUE_VAL
public static final Value TRUE_VAL
-
FALSE_VAL
public static final Value FALSE_VAL
-
EMPTY_STR_VAL
public static final Value EMPTY_STR_VAL
-
ZERO_VAL
public static final Value ZERO_VAL
-
NEG_ONE_VAL
public static final Value NEG_ONE_VAL
-
ONE_VAL
public static final Value ONE_VAL
-
ZERO_D_VAL
public static final Value ZERO_D_VAL
-
-
Method Detail
-
toValue
public static Value toValue(boolean b)
-
toValue
public static Value toValue(int i)
-
toValue
public static Value toValue(float f)
-
toValue
public static Value toValue(double s)
-
toValue
public static Value toValue(BigDecimal s)
-
toValue
public static Value toValue(LocalDateTime ldt)
-
getDateTimeType
public static Value.Type getDateTimeType(LocalDateTime ldt)
-
toValue
public static Value toValue(Value.Type type, LocalDateTime ldt)
-
getDateFormatForType
public static DateTimeFormatter getDateFormatForType(LocaleContext ctx, Value.Type type)
-
-