public interface UpdateResultStep<R extends Record> extends Insert<R>
Update
's DSL API.
Example:
DSLContext create = DSL.using(configuration);
TableRecord> record =
create.update(table)
.set(field1, value1)
.set(field2, value2)
.returning(field1)
.fetchOne();
This implemented differently for every dialect:
UPDATE .. RETURNING
clausesModifier and Type | Method and Description |
---|---|
Result<R> |
fetch()
The result holding returned values as specified by the
UpdateReturningStep
This currently only works well for DB2, HSQLDB, MySQL, and Postgres |
R |
fetchOne()
The record holding returned values as specified by the
UpdateReturningStep |
bind, bind, cancel, close, execute, getBindValues, getParam, getParams, getSQL, getSQL, getSQL, isExecutable, keepStatement, queryTimeout
attach, detach
@Support(value={FIREBIRD,POSTGRES}) Result<R> fetch() throws DataAccessException
UpdateReturningStep
This currently only works well for DB2, HSQLDB, MySQL, and Postgres
UpdateReturningStep
. Note:
Result
in case jOOQ could not retrieve any generated
keys from the JDBC driver.DataAccessException
- if something went wrong executing the queryUpdateQuery.getReturnedRecords()
@Support(value={FIREBIRD,POSTGRES}) R fetchOne() throws DataAccessException
UpdateReturningStep
UpdateReturningStep
. This may return null
in
case jOOQ could not retrieve any generated keys from the JDBC
driver.DataAccessException
- if something went wrong executing the queryUpdateQuery.getReturnedRecord()
Copyright © 2014. All Rights Reserved.