public interface InsertValuesStep<R extends Record> extends InsertOnDuplicateStep<R>
Insert's DSL API.
Example:
Factory create = new Factory();
create.insertInto(table, field1, field2)
.values(value1, value2)
.values(value3, value4)
.onDuplicateKeyUpdate()
.set(field1, value1)
.set(field2, value2)
.execute();
| Modifier and Type | Method and Description |
|---|---|
Insert<R> |
select(Select<?> select)
Use a
SELECT statement as the source of values for the
INSERT statement
This variant of the INSERT .. |
InsertValuesStep<R> |
values(Collection<?> values)
Add values to the insert statement
|
InsertValuesStep<R> |
values(Field<?>... values)
Add values to the insert statement
|
InsertValuesStep<R> |
values(Object... values)
Add values to the insert statement
|
onDuplicateKeyIgnore, onDuplicateKeyUpdatebind, bind, cancel, close, execute, getBindValues, getParam, getParams, getSQL, getSQL, isExecutable, keepStatement, queryTimeoutinternalAPIreturning, returning, returning@Support InsertValuesStep<R> values(Object... values)
@Support InsertValuesStep<R> values(Field<?>... values)
@Support InsertValuesStep<R> values(Collection<?> values)
@Support Insert<R> select(Select<?> select)
SELECT statement as the source of values for the
INSERT statement
This variant of the INSERT .. SELECT statement expects a
select returning exactly as many fields as specified previously in the
INTO clause:
FactoryOperations.insertInto(Table, Field...) or
FactoryOperations.insertInto(Table, Collection)
Copyright © 2013. All Rights Reserved.