Package com.mysql.cj.xdevapi
Class InsertStatementImpl
java.lang.Object
com.mysql.cj.xdevapi.InsertStatementImpl
- All Implemented Interfaces:
InsertStatement
,Statement<InsertStatement,InsertResult>
public class InsertStatementImpl extends java.lang.Object implements InsertStatement
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mysql.cj.xdevapi.Statement
Statement.LockContention
-
Method Summary
Modifier and Type Method 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.
-
Method Details
-
execute
Description copied from interface:Statement
Execute the statement synchronously.- Specified by:
execute
in interfaceStatement<InsertStatement,InsertResult>
- Returns:
- result of statement execution
-
executeAsync
Description copied from interface:Statement
Execute the statement asynchronously.- Specified by:
executeAsync
in interfaceStatement<InsertStatement,InsertResult>
- Returns:
CompletableFuture
for result
-
values
Description copied from interface:InsertStatement
Add a row (sequence of values) to this statement.- Specified by:
values
in interfaceInsertStatement
- Parameters:
row
- list of values to insert- Returns:
InsertStatement
-