Class DayMonthNameFunction

    • Field Detail

      • MONTHNAME

        public static final int MONTHNAME
        MONTHNAME() (non-standard).
        See Also:
        Constant Field Values
      • NAMES

        private static final java.lang.String[] NAMES
      • MONTHS_AND_WEEKS

        private static volatile java.lang.String[][] MONTHS_AND_WEEKS
        English names of months and week days.
      • function

        private final int function
    • Constructor Detail

      • DayMonthNameFunction

        public DayMonthNameFunction​(Expression arg,
                                    int function)
    • Method Detail

      • getValue

        public Value getValue​(SessionLocal session)
        Description copied from class: Expression
        Return the resulting value for the current row.
        Specified by:
        getValue in class Expression
        Parameters:
        session - the session
        Returns:
        the result
      • getMonthsAndWeeks

        private static java.lang.String[] getMonthsAndWeeks​(int field)
        Return names of month or weeks.
        Parameters:
        field - 0 for months, 1 for weekdays
        Returns:
        names of month or weeks
      • optimize

        public Expression optimize​(SessionLocal session)
        Description copied from class: Expression
        Try to optimize the expression.
        Specified by:
        optimize in class Expression
        Parameters:
        session - the session
        Returns:
        the optimized expression
      • getName

        public java.lang.String getName()
        Description copied from interface: NamedExpression
        Get the name.
        Returns:
        the name in uppercase