public class InsertStatementImpl extends java.lang.Object implements InsertStatement
Statement.LockContention| Modifier and Type | Field and Description |
|---|---|
private InsertParams |
insertParams |
private MysqlxSession |
mysqlxSession |
private java.lang.String |
schemaName |
private java.lang.String |
tableName |
| Constructor and Description |
|---|
InsertStatementImpl(MysqlxSession mysqlxSession,
java.lang.String schema,
java.lang.String table,
java.util.Map<java.lang.String,java.lang.Object> fieldsAndValues) |
InsertStatementImpl(MysqlxSession mysqlxSession,
java.lang.String schema,
java.lang.String table,
java.lang.String[] fields) |
| Modifier and Type | Method and Description |
|---|---|
InsertResult |
execute()
Execute the statement synchronously.
|
java.util.concurrent.CompletableFuture<InsertResult> |
executeAsync()
Execute the statement asynchronously.
|
InsertStatement |
values(java.util.List<java.lang.Object> row)
Add a row (sequence of values) to this statement.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvaluesprivate MysqlxSession mysqlxSession
private java.lang.String schemaName
private java.lang.String tableName
private InsertParams insertParams
InsertStatementImpl(MysqlxSession mysqlxSession, java.lang.String schema, java.lang.String table, java.lang.String[] fields)
InsertStatementImpl(MysqlxSession mysqlxSession, java.lang.String schema, java.lang.String table, java.util.Map<java.lang.String,java.lang.Object> fieldsAndValues)
public InsertResult execute()
Statementexecute in interface Statement<InsertStatement,InsertResult>public java.util.concurrent.CompletableFuture<InsertResult> executeAsync()
StatementexecuteAsync in interface Statement<InsertStatement,InsertResult>CompletableFuture for resultpublic InsertStatement values(java.util.List<java.lang.Object> row)
InsertStatementvalues in interface InsertStatementrow - list of values to insertInsertStatement