Class DBEvalContext

    • Constructor Detail

    • Method Detail

      • setLocale

        public void setLocale​(Locale locale)
        Description copied from interface: EvalConfig
        Sets the Locale for use when evaluating expressions. The default locale is Locale.US, so this may need to be modified when interacting with Database instances from other locales.
        Specified by:
        setLocale in interface EvalConfig
      • setTemporalConfig

        public void setTemporalConfig​(TemporalConfig temporal)
        Description copied from interface: EvalConfig
        Sets the TemporalConfig for use when evaluating expressions. The default date/time formatting is US based, so this may need to be modified when interacting with Database instances from other locales.
        Specified by:
        setTemporalConfig in interface EvalConfig
      • setNumericConfig

        public void setNumericConfig​(NumericConfig numeric)
        Description copied from interface: EvalConfig
        Sets the NumericConfig for use when evaluating expressions. The default date/time formatting is US based, so this may need to be modified when interacting with Database instances from other locales.
        Specified by:
        setNumericConfig in interface EvalConfig
      • setFunctionLookup

        public void setFunctionLookup​(FunctionLookup lookup)
        Description copied from interface: EvalConfig
        Sets the Function provider to use during expression evaluation. The Functions supported by the default FunctionLookup are documented in com.healthmarketscience.jackcess.expr. Custom Functions can be implemented and provided to the expression evaluation engine by installing a custom FunctionLookup instance (which would presumably wrap and delegate to the default FunctionLookup instance for any default implementations).
        Specified by:
        setFunctionLookup in interface EvalConfig
      • setBindings

        public void setBindings​(Bindings bindings)
        Description copied from interface: EvalConfig
        Allows for passing custom information into expression evaluation. Currently, none of the default implementations make use of the Bindings. However, in the future, customization parameters could potentially be supported via custom Bindings. Additionally, custom Function instances could be passed external information via custom Bindings.
        Specified by:
        setBindings in interface EvalConfig
      • getRandom

        public float getRandom​(Integer seed)