Class DropStatement
- java.lang.Object
-
- com.mrivanplays.sqlhelper.statement.DropStatement
-
public final class DropStatement extends Object
Represents a "DROP" sql statement, usually used to delete tables.
-
-
Constructor Summary
Constructors Constructor Description DropStatement(SQLConnectionFactory connectionFactory, Executor async)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatementCompletionStage<Void>
executeUpdate()
Executes the update.DropStatement
ifExists()
Marks the statement to execute only if the specified table exists.DropStatement
table(String tableName)
Marks the statement to drop the specified table.
-
-
-
Constructor Detail
-
DropStatement
public DropStatement(SQLConnectionFactory connectionFactory, Executor async)
-
-
Method Detail
-
ifExists
public DropStatement ifExists()
Marks the statement to execute only if the specified table exists.- Returns:
- this instance for chaining
-
table
public DropStatement table(String tableName)
Marks the statement to drop the specified table.- Parameters:
tableName
- the table you want to drop's name.- Returns:
- this instance for chaining
-
executeUpdate
public StatementCompletionStage<Void> executeUpdate()
Executes the update.- Returns:
- statement completion stage
-
-