Skip navigation links

Package com.healthmarketscience.jackcess.expr

Jackcess has support for evaluating Access expressions.

See: Description

Package com.healthmarketscience.jackcess.expr Description

Jackcess has support for evaluating Access expressions. This functionality is enabled by default (as of the 3.5.0 release) but can be globally disabled via the system property "com.healthmarketscience.jackcess.enableExpressionEvaluation" or selectively disabled on a per database basis using Database.setEvaluateExpressions(Boolean).

The expression evaluation engine implementation does its best to follow all the warts and idiosyncracies of Access expression evaluation (both those that are documented as well as those discovered through experimentation). These include such things as value conversions, "Null" handling, rounding rules, and implicit interpretations of expression in certain contexts.

Expressions can be used in a number of different places within an Access database. When enabled, Jackcess supports the following usage:

Supporting Classes

The classes in this package make up the public api for expression handling in Jackcess. They generally fall into two categories:

General Use Classes

Advanced Use Classes

Function Support

Jackcess supports many of the standard Access functions. The following tables list the (hopefully) current status of support built into Jackcess.

Conversion

FunctionSupported
AscY
AscWY
ChrY
ChrWY
EuroConvert
FormatCurrencyY
FormatDateTimeY
FormatNumberY
FormatPercentY
GUIDFromString
Hex[$]Y
NzY
Oct[$]Y
Str[$]Y
StringFromGUID
ValY
CBoolY
CByteY
CCurY
CDateY
CVDateY
CDblY
CDecY
CIntY
CLngY
CSngY
CStrY
CVarY

Date/Time

FunctionSupported
DayY
Date Y
DateAddY
DateDiffY
DatePartY
DateSerialY
DateValueY
HourY
MinuteY
MonthY
MonthNameY
NowY
SecondY
TimeY
TimerY
TimeSerialY
TimeValueY
WeekdayY
WeekdayNameY
YearY

Financial

FunctionSupported
DDBY
FVY
IPmtY
NPerY
PmtY
PPmtY
PVY
RateY
SLNY
SYDY

Inspection

FunctionSupported
IsDatePartial
IsEmpty
IsError
IsMissing
IsNullY
IsNumericY
IsObject
TypeNameY
VarTypeY

Math

FunctionSupported
AbsY
AtnY
CosY
ExpY
IntY
FixY
LogY
RndY
RoundY
SgnY
SinY
SqrY
TanY

Program Flow

FunctionSupported
ChooseY
IIfY
SwitchY

Text

FunctionSupported
Format[$]Y
InStrY
InStrRevY
LCase[$]Y
Left[$]Y
LenY
LTrim[$]Y
RTrim[$]Y
Trim[$]Y
Mid[$]Y
ReplaceY
Right[$]Y
Space[$]Y
StrCompY
StrConv[$]Partial
String[$]Y
StrReverseY
UCase[$]Y
Skip navigation links

Copyright © 2005–2023 OpenHMS. All rights reserved.