public interface DeleteResultStep<R extends Record> extends Delete<R>
Delete
's DSL API.
Example:
DSLContext create = DSL.using(configuration);
create.delete(table)
.where(field1.greaterThan(100))
.execute();
This implemented differently for every dialect:
UPDATE .. RETURNING
clausesSELECT .. FROM FINAL TABLE (DELETE ...)
Modifier and Type | Method and Description |
---|---|
Result<R> |
fetch()
The result holding returned values as specified by the
UpdateReturningStep . |
R |
fetchOne()
The record holding returned values as specified by the
UpdateReturningStep . |
Optional<R> |
fetchOptional()
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={DB2,FIREBIRD,POSTGRES}) Result<R> fetch() throws DataAccessException
UpdateReturningStep
.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={DB2,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()
@Support(value={DB2,FIREBIRD,POSTGRES}) Optional<R> fetchOptional() throws DataAccessException
UpdateReturningStep
.UpdateReturningStep
DataAccessException
- if something went wrong executing the queryUpdateQuery.getReturnedRecord()
Copyright © 2015. All Rights Reserved.