Class SQLDropStatement

java.lang.Object
com.github.tadukoo.database.mysql.syntax.statement.SQLDropStatement

public class SQLDropStatement extends Object
SQLDropStatement represents a MySQL Drop statement
Version:
Alpha v.0.3
Author:
Logan Ferree (Tadukoo)
  • Field Details

    • type

      private final SQLType type
      The type to be dropped
    • ifExists

      private final boolean ifExists
      Whether to include IF EXISTS in the statement or not
    • name

      private final String name
      The name of the table/database to be dropped
  • Constructor Details

    • SQLDropStatement

      private SQLDropStatement(SQLType type, boolean ifExists, String name)
      Constructs a new SQLDropStatement with the given parameters
      Parameters:
      type - The type to be dropped
      ifExists - Whether to include IF EXISTS in the statement or not
      name - The name of the table/database to be dropped
  • Method Details

    • builder

      public static SQLDropStatement.Type builder()
      Returns:
      A new builder to create a SQLDropStatement
    • getType

      public SQLType getType()
      Returns:
      The type to be dropped
    • getIfExists

      public boolean getIfExists()
      Returns:
      Whether to include IF EXISTS in the statement or not
    • getName

      public String getName()
      Returns:
      The name of the table/database to be dropped
    • toString

      public String toString()
      Overrides:
      toString in class Object