|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface InsertReturningStep<R extends Record>
This type is used for the Insert's DSL API.
Example:
Factory create = new Factory();
TableRecord> record =
create.insertInto(table, field1, field2)
.values(value1, value2)
.returning(field1)
.fetchOne();
This implemented differently for every dialect:
INSERT .. RETURNING clauses@@identity or last_inserted_rowid() values. Those
values are fetched in a separate SELECT statement. If other
fields are requested, a second statement is issued. Client code must assure
transactional integrity between the two statements.
| Method Summary | |
|---|---|
InsertResultStep<R> |
returning()
Configure the INSERT statement to return all fields in
R. |
InsertResultStep<R> |
returning(Collection<? extends Field<?>> fields)
Configure the INSERT statement to return a list of fields in
R. |
InsertResultStep<R> |
returning(Field<?>... fields)
Configure the INSERT statement to return a list of fields in
R. |
| Method Detail |
|---|
InsertResultStep<R> returning()
INSERT statement to return all fields in
R.
InsertResultStepInsertResultStep<R> returning(Field<?>... fields)
INSERT statement to return a list of fields in
R.
fields - Fields to be returnedInsertResultStepInsertResultStep<R> returning(Collection<? extends Field<?>> fields)
INSERT statement to return a list of fields in
R.
fields - Fields to be returnedInsertResultStep
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||