java.lang.Object
com.ptsmods.mysqlw.procedure.stmt.Statement
com.ptsmods.mysqlw.procedure.stmt.block.EndStmt
All Implemented Interfaces:
ClosingStatement

public class EndStmt extends Statement implements ClosingStatement
Statement ending a block of statements.
  • Method Details

    • endIf

      public static EndStmt endIf()
      End an if-block
      Returns:
      An EndStmt
    • endLoop

      public static EndStmt endLoop()
      End a loop-block
      Returns:
      An EndStmt
    • endWhile

      public static EndStmt endWhile()
      End a while-block
      Returns:
      An EndStmt
    • endCase

      public static EndStmt endCase()
      End a case-block
      Returns:
      An EndStmt
    • end

      public static EndStmt end(String delimiter)
      End a trigger/procedure
      Parameters:
      delimiter - The delimiter to append to the statement
      Returns:
      An EndStmt
    • toString

      public String toString()
      Specified by:
      toString in class Statement
      Returns:
      String representation of the statement