Class RandFunction

    • Field Detail

      • SECURE_RAND

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

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

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

        private final int function
    • Constructor Detail

      • RandFunction

        public RandFunction​(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
      • 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
      • isEverything

        public boolean isEverything​(ExpressionVisitor visitor)
        Description copied from class: Expression
        Check if this expression and all sub-expressions can fulfill a criteria. If any part returns false, the result is false.
        Overrides:
        isEverything in class Function0_1
        Parameters:
        visitor - the visitor
        Returns:
        if the criteria can be fulfilled
      • getName

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