|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface InsertResultStep<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, another statement is issued. Client code must assure
transactional integrity between these statements.
| Method Summary | |
|---|---|
Result<R> |
fetch()
The result holding returned values as specified by the InsertReturningStep
This currently only works well for DB2, HSQLDB, MySQL, and Postgres |
R |
fetchOne()
The record holding returned values as specified by the InsertReturningStep |
| Methods inherited from interface org.jooq.Query |
|---|
bind, bind, execute, getBindValues, getParam, getParams, getSQL, getSQL |
| Methods inherited from interface org.jooq.Attachable |
|---|
attach |
| Methods inherited from interface org.jooq.Adapter |
|---|
internalAPI |
| Method Detail |
|---|
Result<R> fetch()
throws DataAccessException
InsertReturningStep
This currently only works well for DB2, HSQLDB, MySQL, and Postgres
DataAccessException - if something went wrong executing the query
R fetchOne()
throws DataAccessException
InsertReturningStep
DataAccessException - if something went wrong executing the query
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||