Class MergeUsing.When

    • Field Detail

      • andCondition

        Expression andCondition
        AND condition of the command.
    • Constructor Detail

      • When

        When()
    • Method Detail

      • setAndCondition

        public void setAndCondition​(Expression andCondition)
        Sets the specified AND condition.
        Parameters:
        andCondition - AND condition to set
      • prepare

        boolean prepare​(SessionLocal session)
        Prepares WHEN command.
        Parameters:
        session - the session
        Returns:
        false if this clause may be removed
      • evaluateTriggerMasks

        abstract int evaluateTriggerMasks()
        Evaluates trigger mask (UPDATE, INSERT, DELETE).
        Returns:
        the trigger mask.
      • checkRights

        abstract void checkRights()
        Checks user's INSERT, UPDATE, DELETE permission in appropriate cases.
      • collectDependencies

        void collectDependencies​(ExpressionVisitor visitor)
        Find and collect all DbObjects, this When object depends on.
        Parameters:
        visitor - the expression visitor
      • getSQL

        public java.lang.StringBuilder getSQL​(java.lang.StringBuilder builder,
                                              int sqlFlags)
        Description copied from interface: HasSQL
        Appends the SQL statement of this object to the specified builder.
        Specified by:
        getSQL in interface HasSQL
        Parameters:
        builder - string builder
        sqlFlags - formatting flags
        Returns:
        the specified string builder