Class InsertStatement
- java.lang.Object
-
- com.mrivanplays.sqlhelper.statement.InsertStatement
-
public final class InsertStatement extends Object
Represents an sql "INSERT" statement
-
-
Constructor Summary
Constructors Constructor Description InsertStatement(SQLConnectionFactory connectionFactory, Executor async)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InsertStatementcolumns(String... columns)Mark the columns of the table which we're going to insert.StatementCompletionStage<Void>executeUpdate(Object... values)Executes the update.InsertStatementinto(String tableName)Mark the table where we're going to insert.
-
-
-
Constructor Detail
-
InsertStatement
public InsertStatement(SQLConnectionFactory connectionFactory, Executor async)
-
-
Method Detail
-
into
public InsertStatement into(String tableName)
Mark the table where we're going to insert.- Parameters:
tableName- table- Returns:
- this instance for chaining
-
columns
public InsertStatement columns(String... columns)
Mark the columns of the table which we're going to insert.- Parameters:
columns- columns- Returns:
- this instance for chaining
-
executeUpdate
public StatementCompletionStage<Void> executeUpdate(Object... values)
Executes the update.- Parameters:
values- values that we're going to insert- Returns:
- statement completion stage
-
-