Class Condition

    • Constructor Detail

      • Condition

        Condition()
    • Method Detail

      • castToBoolean

        static Expression castToBoolean​(SessionLocal session,
                                        Expression expression)
        Add a cast around the expression (if necessary) so that the type is boolean.
        Parameters:
        session - the session
        expression - the expression
        Returns:
        the new expression
      • getType

        public TypeInfo getType()
        Description copied from class: Expression
        Returns the data type. The data type may be unknown before the optimization phase.
        Specified by:
        getType in interface Typed
        Specified by:
        getType in class Expression
        Returns:
        the data type