|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InsertSetStep
This type is used for the Insert
's alternative DSL API.
Example:
Factory create = new Factory();
create.insertInto(table)
.set(field1, value1)
.set(field2, value2)
.newRecord()
.set(field1, value3)
.set(field2, value4)
.onDuplicateKeyUpdate()
.set(field1, value1)
.set(field2, value2)
.execute();
Method Summary | |
---|---|
InsertSetMoreStep |
set(Field<?> field,
Field<?> value)
Set a value for a field in the UPDATE statement |
InsertSetMoreStep |
set(Field<?> field,
Object value)
Set a value for a field in the UPDATE statement |
InsertSetMoreStep |
set(Map<? extends Field<?>,?> map)
Set a value for a field in the UPDATE statement
Please assure that key/value pairs have matching <T>
types. |
InsertValuesStep |
values(Collection<?> values)
Add values to the insert statement with implicit field names |
InsertValuesStep |
values(Field<?>... values)
Add values to the insert statement with implicit field names |
InsertValuesStep |
values(Object... values)
Add values to the insert statement with implicit field names |
Method Detail |
---|
InsertSetMoreStep set(Field<?> field, Object value)
UPDATE
statement
InsertSetMoreStep set(Field<?> field, Field<?> value)
UPDATE
statement
InsertSetMoreStep set(Map<? extends Field<?>,?> map)
UPDATE
statement
Please assure that key/value pairs have matching <T>
types. Values can either be of type <T>
or
Field<T>
InsertValuesStep values(Object... values)
InsertValuesStep values(Field<?>... values)
InsertValuesStep values(Collection<?> values)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |