Skip navigation links

Package com.healthmarketscience.jackcess.expr

Jackcess has support for evaluating Access expressions (beta support as of the 2.2.0 release).

See: Description

Package com.healthmarketscience.jackcess.expr Description

Jackcess has support for evaluating Access expressions (beta support as of the 2.2.0 release). This functionality is currently disabled by default but can be globally enabled via the system property "com.healthmarketscience.jackcess.enableExpressionEvaluation" or selectively enabled 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
FormatCurrency
FormatDateTime
FormatNumber
FormatPercent
GUIDFromString
Hex[$]Y
NzY
Oct[$]Y
Str[$]Y
StringFromGUID
Val
CBoolY
CByteY
CCurY
CDateY
CVDateY
CDblY
CDecY
CIntY
CLngY
CSngY
CStrY
CVarY

Date/Time

FunctionSupported
DayY
Date Y
DateAdd
DateDiff
DatePart
DateSerialY
DateValueY
HourY
MinuteY
MonthY
MonthName
NowY
SecondY
TimeY
TimerY
TimeSerialY
TimeValueY
WeekdayY
WeekdayName
YearY

Financial

FunctionSupported
DDB
FVY
IPmt
IRR
MIRR
NPerY
NPV
PmtY
PPmt
PVY
Rate
SLN
SYD

Inspection

FunctionSupported
IsDatePartial
IsEmpty
IsError
IsMissing
IsNullY
IsNumeric
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
InStrY
InStrRevY
LCase[$]Y
Left[$]Y
LenY
LTrim[$]Y
RTrim[$]Y
Trim[$]Y
Mid[$]Y
Replace
Right[$]Y
Space[$]Y
StrCompY
StrConv
String[$]Y
StrReverseY
UCase[$]Y
Skip navigation links

Copyright © 2005–2018. All rights reserved.