Class DeleteStatement
- java.lang.Object
-
- com.mrivanplays.sqlhelper.statement.DeleteStatement
-
public final class DeleteStatement extends Object
Represents an "DELETE" sql statement
-
-
Constructor Summary
Constructors Constructor Description DeleteStatement(SQLConnectionFactory connectionFactory, Executor async)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatementCompletionStage<Void>executeUpdate()Executes the update.DeleteStatementfrom(String tableName)Mark the table from which we're going to delete.DeleteStatementwhere(String[] keys, Object[] values)Mark the sql statement's "where" values
-
-
-
Constructor Detail
-
DeleteStatement
public DeleteStatement(SQLConnectionFactory connectionFactory, Executor async)
-
-
Method Detail
-
from
public DeleteStatement from(String tableName)
Mark the table from which we're going to delete.- Parameters:
tableName- the table name- Returns:
- this instance for chaining
-
where
public DeleteStatement where(String[] keys, Object[] values)
Mark the sql statement's "where" values- Parameters:
keys- keysvalues- values- Returns:
- this instance for chaining
-
executeUpdate
public StatementCompletionStage<Void> executeUpdate()
Executes the update.- Returns:
- completion stage
-
-